Playtime

object Playtime

The entry point of adjoe Playtime SDK.

Types

Link copied to clipboard

Properties

Link copied to clipboard
const val EVENT_TEASER_SHOWN: Int = 14

The user can see the teaser, for example the button via which he can access the Playtime SDK from the SDK App. Trigger this event when the teaser has been successfully rendered and would successfully redirect the user to the Playtime SDK. It should be triggered regardless of whether the user has actually clicked the teaser or not. This event is mostly appropriate for uses, in which the functionality of the SDK App and SDK are kept separate to a relevant degree. See sendUserEvent

Link copied to clipboard

Returns the pre-release version of the Playtime SDK.

Link copied to clipboard
const val TAG: String
Link copied to clipboard

Returns the version code of the Playtime SDK.

Link copied to clipboard

Returns the version name of the Playtime SDK.

Functions

Link copied to clipboard
Link copied to clipboard

Registers a listener which notifies you when an event occurs.

Link copied to clipboard

Returns the Intent to launch the PlaytimeActivity displaying the catalog.

Link copied to clipboard

Returns the listener which has been set with setCatalogListener.

Link copied to clipboard

Returns the unique ID of the user by which he is identified within the Playtime services.

Link copied to clipboard

Checks whether the user has accepted the Playtime Terms of Service (TOS).

Link copied to clipboard

Checks whether the user has given access to the usage statistics.

Link copied to clipboard
fun init(context: Context, sdkHash: String)
fun init(context: Context, sdkHash: String, listener: PlaytimeInitialisationListener)
fun init(context: Context, sdkHash: String, options: PlaytimeOptions)
fun init(context: Context, sdkHash: String, options: PlaytimeOptions, listener: PlaytimeInitialisationListener)

Initializes the Playtime SDK.

Link copied to clipboard

Checks whether the Playtime SDK is initialized.

Link copied to clipboard

Removes the listener which has been set with setCatalogListener.

Link copied to clipboard

Removes the listener which has been set with addEventListener.

Link copied to clipboard
fun sendUserEvent(context: Context, event: Int, extra: String?)
fun sendUserEvent(ctx: Context, event: Int, extra: String?, params: PlaytimeParams?)

Sends a user event to Playtime.

Link copied to clipboard

Registers a listener which notifies you when the catalog is opened and closed.

Link copied to clipboard

Sets the User-Acquisition (UA) parameters.

Link copied to clipboard