12345678910111213141516171819202122232425 |
- //
- // KMDMGPurchaseManager.swift
- // PDF Master
- //
- // Created by lizhe on 2023/6/8.
- //
- import Cocoa
- class KMDMGPurchaseManager: NSObject {
- public static let manager = KMDMGPurchaseManager()
- var fetchProductCompletion: KMPurchaseFetchProductCompletion?
-
- var availableProducts: [KMProduct] = []
-
- func purchaseProduct(productIdentifier: String, completion: KMPurchaseCompletion) {
- NSWorkspace.shared.open(URL(string: "https://www.pdfreaderpro.com/store")!)
- }
-
- func fetchProducts(completion: @escaping KMPurchaseFetchProductCompletion) {
- self.fetchProductCompletion = completion
-
-
- }
- }
|