set Listeners
actual fun setListeners(onFailure: (Exception) -> Unit, onDismissed: () -> Unit, onShown: () -> Unit, onImpression: () -> Unit, onClick: () -> Unit)
Sets the listeners for the rewarded ad.
Parameters
on Failure
A callback invoked when the ad fails to show.
on Dismissed
A callback invoked when the ad is dismissed.
on Shown
A callback invoked when the ad is shown.
on Impression
A callback invoked when an impression is recorded for the ad.
on Click
A callback invoked when the ad is clicked.
expect fun setListeners(onFailure: (Exception) -> Unit, onDismissed: () -> Unit, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {})
Sets the FullScreenContentCallback for the Rewarded Ad.
The setListeners function handles events related to displaying your RewardedAdHandler. Callbacks must be set before calling RewardedAdHandler.show.
Parameters
on Failure
Callback with Exception when ad fails to display
on Dismissed
Callback when ad is dismissed
on Shown
Callback after ad is shown
on Impression
Callback after the ad makes an impression
on Click
Callback on ad click