TvAdServiceCallback


abstract class TvAdServiceCallback
kotlin.Any
   ↳ android.media.tv.ad.TvAdManager.TvAdServiceCallback

Callback used to monitor status of the TV advertisement service.

Summary

Public constructors

Public methods
open Unit

This is called when a TV AD service is added to the system.

open Unit

This is called when a TV AD service is removed from the system.

open Unit

This is called when a TV AD service is updated on the system.

Public constructors

TvAdServiceCallback

TvAdServiceCallback()

Public methods

onAdServiceAdded

open fun onAdServiceAdded(serviceId: String): Unit

This is called when a TV AD service is added to the system.

Normally it happens when the user installs a new TV AD service package that implements TvAdService interface.

Parameters
serviceId String: The ID of the TV AD service. This value cannot be null.

onAdServiceRemoved

open fun onAdServiceRemoved(serviceId: String): Unit

This is called when a TV AD service is removed from the system.

Normally it happens when the user uninstalls the previously installed TV AD service package.

Parameters
serviceId String: The ID of the TV AD service. This value cannot be null.

onAdServiceUpdated

open fun onAdServiceUpdated(serviceId: String): Unit

This is called when a TV AD service is updated on the system.

Normally it happens when a previously installed TV AD service package is re-installed or a newer version of the package exists becomes available/unavailable.

Parameters
serviceId String: The ID of the TV AD service. This value cannot be null.