sendUserEvent

fun sendUserEvent(context: Context, event: Int, extra: String?)

Sends a user event to Playtime.

These events help to improve the accuracy of the app recommendations for the user.

Parameters

context

A context.

event

The ID of the event.

extra

For See io.adjoe.sdk.PlaytimeCustom.EVENT_VIDEO_PLAY, io.adjoe.sdk.PlaytimeCustom.EVENT_VIDEO_PAUSE and io.adjoe.sdk.PlaytimeCustom.EVENT_VIDEO_ENDED this must be the application iD of the app to which the video belongs, otherwise null.

Throws

This method fails when the SDK is not initialized (see init).


fun sendUserEvent(ctx: Context, event: Int, extra: String?, params: PlaytimeParams?)

Sends a user event to Playtime.

These events help to improve the accuracy of the app recommendations for the user.

Parameters

ctx

A context.

event

The ID of the event.

extra

For See io.adjoe.sdk.PlaytimeCustom.EVENT_VIDEO_PLAY, See io.adjoe.sdk.PlaytimeCustom.EVENT_VIDEO_PAUSE and See io.adjoe.sdk.PlaytimeCustom.EVENT_VIDEO_ENDED this must be the application iD of the app to which the video belongs, otherwise null.

params

The PlaytimeParams that holds the user acquisition (UA) paramaters and placement (optional).

See also

Throws

This method fails when the SDK is not initialized (see init).