PlaytimeStudio
@objcMembers
public final class PlaytimeStudio : NSObject
The entry point of Adjoe Playtime SDK in Studio version. This class provides methods to fetch campaigns and installed apps to show them in your custom UI.
Note
The SDK is functional starting from iOS 14.0.-
Get the list of offers that a user can install.
Declaration
Swift
public static func getCampaigns(options: PlaytimeOptions? = nil) async throws -> PlaytimeCampaignsResponse -
Get a campaign by the specified token.
Declaration
Swift
public static func getCampaign(token: String, options: PlaytimeOptions? = nil) async throws -> PlaytimeCampaign -
Get the list of apps the user has already installed and that will contain the progress the user has made already.
Declaration
Swift
public static func getInstalledCampaigns(options: PlaytimeOptions? = nil) async throws -> PlaytimeCampaignsResponse -
Use this method to forward the user to the store.
Declaration
Swift
public static func openInStore(campaign: PlaytimeCampaign) async throws -
Get user’s permissions.
Declaration
Swift
public static func getPermissions() async throws -> PlaytimePermissionsResponse -
Show the prompt requesting user’s permissions.
Declaration
Swift
public static func showPermissionsPrompt() async throws -> PlaytimePermissionsResponse
PlaytimeStudio Class Reference