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) async throws -> PlaytimeCampaignsResponse -
Get campaigns by the specified tokens.
Declaration
Swift
public static func getCampaigns(tokens: [String], options: PlaytimeOptions) async throws -> PlaytimeCampaignsResponse -
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) async throws -> PlaytimeCampaignsResponse -
Use this method to forward the user to the store for an uninstalled app.
Declaration
Swift
public static func openInStore(campaign: PlaytimeCampaign) async throws -
Use this method to open installed application.
Declaration
Swift
public static func openInstalledCampaign(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