FullScreenContentCallback

abstract class FullScreenContentCallback


Callback to be invoked when ads show and dismiss full screen content, such as a fullscreen ad experience or an in-app browser.

Summary

Constants

const Int

Error code that indicates the ad has already been shown.

const Int

Error code that indicates the ad can not be shown when app is not in the foreground.

const Int

Error code that indicates something unexpected happened internally.

const Int

Error code that indicates a mediation adapter failed to show the ad.

const Int

Error code that indicates the ad is not ready.

Public constructors

Public functions

Unit

Called when a click is recorded for an ad.

Unit

Called when the ad dismissed full screen content.

Unit

Called when the ad failed to show full screen content.

Unit

Called when an impression is recorded for an ad.

Unit

Called when the ad showed the full screen content.

Constants

ERROR_CODE_AD_REUSED

const val ERROR_CODE_AD_REUSED = 1: Int

Error code that indicates the ad has already been shown.

ERROR_CODE_APP_NOT_FOREGROUND

const val ERROR_CODE_APP_NOT_FOREGROUND = 3: Int

Error code that indicates the ad can not be shown when app is not in the foreground.

ERROR_CODE_INTERNAL_ERROR

const val ERROR_CODE_INTERNAL_ERROR = 0: Int

Error code that indicates something unexpected happened internally.

ERROR_CODE_MEDIATION_SHOW_ERROR

const val ERROR_CODE_MEDIATION_SHOW_ERROR = 4: Int

Error code that indicates a mediation adapter failed to show the ad. If this error is returned from getCode, check getCause for the underlying cause.

ERROR_CODE_NOT_READY

const val ERROR_CODE_NOT_READY = 2: Int

Error code that indicates the ad is not ready.

Public constructors

FullScreenContentCallback

FullScreenContentCallback()

Public functions

onAdClicked

fun onAdClicked(): Unit

Called when a click is recorded for an ad.

onAdDismissedFullScreenContent

fun onAdDismissedFullScreenContent(): Unit

Called when the ad dismissed full screen content.

onAdFailedToShowFullScreenContent

fun onAdFailedToShowFullScreenContent(adError: AdError!): Unit

Called when the ad failed to show full screen content.

onAdImpression

fun onAdImpression(): Unit

Called when an impression is recorded for an ad.

onAdShowedFullScreenContent

fun onAdShowedFullScreenContent(): Unit

Called when the ad showed the full screen content.