Condividi tramite


TvInputService.Session.OnSetTvMessageEnabled(TVMessageType, Boolean) Method

Definition

Called when the application enables or disables the detection of the specified message type.

[Android.Runtime.Register("onSetTvMessageEnabled", "(IZ)V", "GetOnSetTvMessageEnabled_IZHandler", ApiSince=34)]
public virtual void OnSetTvMessageEnabled (Android.Media.TV.TVMessageType type, bool enabled);
[<Android.Runtime.Register("onSetTvMessageEnabled", "(IZ)V", "GetOnSetTvMessageEnabled_IZHandler", ApiSince=34)>]
abstract member OnSetTvMessageEnabled : Android.Media.TV.TVMessageType * bool -> unit
override this.OnSetTvMessageEnabled : Android.Media.TV.TVMessageType * bool -> unit

Parameters

type
TVMessageType

The type of message received, such as TvInputManager#TV_MESSAGE_TYPE_WATERMARK

enabled
Boolean

true if TV message detection is enabled, false otherwise.

Attributes

Remarks

Called when the application enables or disables the detection of the specified message type.

Java documentation for android.media.tv.TvInputService.Session.onSetTvMessageEnabled(int, boolean).

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