TvInputService.Session.OnSetCaptionEnabled(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.