1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// StoreKitServiceDelegate.swift
|
||||
// StoreKit2Manager
|
||||
//
|
||||
// Created by xiaopin on 2025/12/6.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import StoreKit
|
||||
|
||||
/// StoreKitService 内部代理协议
|
||||
/// 所有回调都在主线程执行
|
||||
@MainActor
|
||||
internal protocol StoreKitServiceDelegate: AnyObject {
|
||||
/// 状态更新
|
||||
func service(_ service: StoreKitService, didUpdateState state: StoreKitState)
|
||||
|
||||
/// 产品加载成功
|
||||
func service(_ service: StoreKitService, didLoadProducts products: [Product])
|
||||
|
||||
/// 已购买交易订单更新
|
||||
func service(_ service: StoreKitService, didUpdatePurchasedTransactions efficient: [Transaction], latests: [Transaction])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user