Playtime

@objcMembers
public final class Playtime : NSObject

The entry point of adjoe Playtime SDK.

Note

The SDK is functional starting from iOS 14.0.
  • Present a screen view with the Playtime catalog.

    Declaration

    Swift

    public static func showCatalog(
        options: PlaytimeOptions
    ) async throws

    Parameters

    options

    Options for the Playtime catalog.

  • Set Playtime options.

    Declaration

    Swift

    public static func setPlaytimeOptions(options: PlaytimeOptions) async throws
  • Get the status of the SDK.

    Declaration

    Swift

    public static func getStatus() async throws -> PlaytimeStatus
  • Get the SDK version.

    Declaration

    Swift

    public static func getVersion() -> String

    Return Value

    The SDK version string, or “Unspecified” if not available.

  • Get the user ID.

    Declaration

    Swift

    public static func getUserId() async throws -> String?

    Return Value

    The external user ID string that was provided by the publisher in PlaytimeOptions.