PlaytimeCustom

This class provides methods for custom integration of the Playtime SDK.

Types

Link copied to clipboard

Properties

Link copied to clipboard
const val EVENT_AGB_ACCEPTED: Int = 2

The user has just accepted the Terms of Service of your app. Trigger this event when the user has pressed "yes" (or other positive action) on the dialog asking for his agreement to the Playtime Terms of Service. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_AGB_DECLINED: Int = 3

The user has just declined the Terms of Service of your app. Trigger this event when the user has pressed "no" (or other negative action) on the dialog asking for his agreement to the Playtime Terms of Service. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_AGB_SHOWN: Int = 1

The user sees the Terms of Service of your app. Trigger this event every time the user sees the dialog asking for his agreement to the Playtime Terms of Service. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_APP_OPEN: Int = 12

The user has opened your app. Trigger this event when your app is launched, i.e. a new SDK App session for the user is initiated. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_CAMPAIGNS_SHOWN: Int = 10

You have just displayed the campaigns screen to the user. Trigger this event when the Playtime catalog is loaded with either advertised partner apps or already installed partner apps for signed-up users. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_FIRST_IMPRESSION: Int = 13

The user sees the Playtime content, for example the onResume method of the activity displaying the Playtime content is called. Trigger this event on the following user actions: 1) the user has opened your app and started a new Playtime-related session, 2) the user has brought your app from the background to the foreground to continue his Playtime-related session (exception: the user has left your app to allow usage tracking in his phone settings). The event should be triggered in both cases regardless of whether the user has already signed up or not. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard

The user has just given your app the access to the usage data. Trigger this event when the user has returned from his phone settings to your app for the first time with the permission for usage tracking via your app given. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard

The user has denied to give your app the access to the usage data. Trigger this event when the user has pressed "no" (or other negative action) on the dialog asking for permission for usage tracking. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_VIDEO_ENDED: Int = 9

The video for one of the partner apps has ended. Trigger this event when the video of an Playtime advertisement has reached its end. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_VIDEO_PAUSE: Int = 8

The user has paused the video for any of the partner apps. Trigger this event when the user has paused the video of an Playtime advertisement. See io.adjoe.sdk.Playtime.sendUserEvent.

Link copied to clipboard
const val EVENT_VIDEO_PLAY: Int = 7

The user has started the video for any of the partner apps. Trigger this event when the user has started the video of an Playtime advertisement. See io.adjoe.sdk.Playtime.sendUserEvent.

Functions

Link copied to clipboard

Pays out the user's collected rewards.

Link copied to clipboard

Requests a list of partner apps which the user has installed.

Link copied to clipboard

Requests a list of partner apps which the user would see in the catalog.

Link copied to clipboard

Requests the user's current rewards, including how many of them are available for payout and how many have already been paid out.

Link copied to clipboard

Accepts the Playtime Terms of Service (TOS).

Link copied to clipboard

Notifies Playtime when the user has given access to the usage statistics.

Link copied to clipboard

Opens the usage statistics system settings page so that the user can give access to it.