Freigeben über


TvView.TvInputCallback.OnTvMessage(String, TVMessageType, Bundle) Method

Definition

This is called when a new TV Message has been received.

[Android.Runtime.Register("onTvMessage", "(Ljava/lang/String;ILandroid/os/Bundle;)V", "GetOnTvMessage_Ljava_lang_String_ILandroid_os_Bundle_Handler", ApiSince=34)]
public virtual void OnTvMessage (string inputId, Android.Media.TV.TVMessageType type, Android.OS.Bundle data);
[<Android.Runtime.Register("onTvMessage", "(Ljava/lang/String;ILandroid/os/Bundle;)V", "GetOnTvMessage_Ljava_lang_String_ILandroid_os_Bundle_Handler", ApiSince=34)>]
abstract member OnTvMessage : string * Android.Media.TV.TVMessageType * Android.OS.Bundle -> unit
override this.OnTvMessage : string * Android.Media.TV.TVMessageType * Android.OS.Bundle -> unit

Parameters

inputId
String

The ID of the TV input bound to this view.

type
TVMessageType

The type of message received, such as TvInputManager#TV_MESSAGE_TYPE_WATERMARK

data
Bundle

The raw data of the message. The bundle keys are: TvInputManager#TV_MESSAGE_KEY_STREAM_ID, TvInputManager#TV_MESSAGE_KEY_GROUP_ID, TvInputManager#TV_MESSAGE_KEY_SUBTYPE, TvInputManager#TV_MESSAGE_KEY_RAW_DATA. See TvInputManager#TV_MESSAGE_KEY_SUBTYPE for more information on how to parse this data.

Attributes

Remarks

This is called when a new TV Message has been received.

Java documentation for android.media.tv.TvView.TvInputCallback.onTvMessage(java.lang.String, int, android.os.Bundle).

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