impression

fun impression(trackingLink: Uri, onSuccess: OnSuccess<Unit>? = null): Boolean

Notifies that the in-app area within the app has been exposed to the user.

Return

true if all of the following conditions are met:

  • If the SDK is initialized and enabled.

  • If tracking link is successfully handled.

false otherwise.

Parameters

trackingLink

tracking link uri

onSuccess

Callback to be invoked when tracking link is successfully handled.


fun impression(trackingLink: Uri, onSuccess: OnSuccess<Unit>?, onFailure: OnFailure?): Boolean

Notifies that an in-app area within an app has been clicked on by the user.

Return

true if all of the following conditions are met:

  • If the SDK is initialized and enabled.

  • If tracking link is successfully handled.

false otherwise.

Parameters

trackingLink

tracking link uri

onSuccess

Callback to be invoked when tracking link is successfully handled.

onFailure

Callback to be invoked when any exception occurs.