Share via


TvInputService.Session.OnTvMessage(TVMessageType, Bundle) Method

Definition

Called when a TV message is received

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

Parameters

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

Called when a TV message is received

Java documentation for android.media.tv.TvInputService.Session.onTvMessage(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