Playtime
@objcMembers
public final class Playtime : NSObject
The entry point of adjoe Playtime SDK.
Note
The SDK is functional starting from iOS 14.0.-
initialize(userID:sdkHash: uaNetwork: uaChannel: uaSubPublisherCleartext: uaSubPublisherEncrypted: placement: ) Initialize Playtime SDK.
Warning
If you don’t use auto-init, you must call this method before any other SDK APIs or they will throwPlaytimeError.performingOperationBeforeSDKInitialized.Declaration
Swift
@objc public static func initialize( userID: String?, sdkHash: String, uaNetwork: String?, uaChannel: String?, uaSubPublisherCleartext: String?, uaSubPublisherEncrypted: String?, placement: String? ) async throwsParameters
userIDPublisher’s user ID.
sdkHashSDK hash that you received from the Adjoe Monetize dashboard.
uaNetworkUser acquisition network where the user came from.
uaChannelUser acquisition channel where the user came from; e.g. video, offerwall.
uaSubPublisherCleartextUser acquisition sub ID in clear text where the user came from.
uaSubPublisherEncryptedUser acquisition sub ID in encrypted form where the user came from.
placementThe placement of the Playtime experience; e.g. “home screen”, “more options menu”.
-
Present a screen view with the Playtime catalog.
Declaration
Swift
public static func showCatalog( options: PlaytimeOptions ) async throwsParameters
optionsOptions for the Playtime catalog.
Playtime Class Reference