Partager via


TvInputService.Session.OnSetCaptionEnabled(Boolean) Method

Definition

Enables or disables the caption.

[Android.Runtime.Register("onSetCaptionEnabled", "(Z)V", "GetOnSetCaptionEnabled_ZHandler")]
public abstract void OnSetCaptionEnabled (bool enabled);
[<Android.Runtime.Register("onSetCaptionEnabled", "(Z)V", "GetOnSetCaptionEnabled_ZHandler")>]
abstract member OnSetCaptionEnabled : bool -> unit

Parameters

enabled
Boolean

true to enable, false to disable.

Attributes

Remarks

Enables or disables the caption.

The locale for the user's preferred captioning language can be obtained by calling CaptioningManager#getLocale CaptioningManager.getLocale().

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