TvAdView.TvAdCallback.OnStateChanged(String, Int32, Int32) Method

Definition

This is called when the state of corresponding AD service is changed.

[Android.Runtime.Register("onStateChanged", "(Ljava/lang/String;II)V", "GetOnStateChanged_Ljava_lang_String_IIHandler", ApiSince=36)]
public virtual void OnStateChanged(string serviceId, int state, int err);
[<Android.Runtime.Register("onStateChanged", "(Ljava/lang/String;II)V", "GetOnStateChanged_Ljava_lang_String_IIHandler", ApiSince=36)>]
abstract member OnStateChanged : string * int * int -> unit
override this.OnStateChanged : string * int * int -> unit

Parameters

serviceId
String

The ID of the AD service bound to this view.

state
Int32

the current state.

err
Int32

the error code for error state. TvAdManager#ERROR_NONE is used when the state is not TvAdManager#SESSION_STATE_ERROR.

Attributes

Remarks

This is called when the state of corresponding AD service is changed.

Java documentation for android.media.tv.ad.TvAdView.TvAdCallback.onStateChanged(java.lang.String, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to