setTrackingProxy
Call the setTrackingProxy API to set up a proxy for event tracking. This proxy is optional.
Method signature
public static func setTrackingProxy(_ proxy: IAPAPTrackingProxy)Request parameters
Parameter | Type | Required | Description |
proxy | Yes | The implementation of event tracking proxy. |
IAPAPTrackingProxy
public protocol IAPAPTrackingProxy {
func trackEvent(_ event: IAPAPTrackingEvent, parameters: [String: Any]?)
}IAPAPTrackingEvent
Key | Value |
createStaticToken |
|
getStaticTokenInfo |
|
getStaticTokenVerificationInfo |
|
getServiceState |
|
suspendService |
|
unsuspendService |
|
addToAppleWallet |
|
addToAppleWalletWithoutStaticToken |
|
getDeviceTokenOnCurrentDevice |
|
getDeviceTokenOnPairedDevice |
|
presentDeviceTokenOnCurrentDevice |
|
activateDeviceToken |
|
statusForPassEntries |
|
availablePassEntries |
|
availableRemotePassEntries |
|
generateAddPaymentPassRequestForPassEntryWithIdentifier |
|
canAddToCurrentDevice |
|
canAddToPairedDevice |
|
Response parameters
N/A
Sample
IAPApplePay.setTrackingProxy(TrackingProxy())