Udostępnij za pośrednictwem


TvInputService.Session.OnSelectAudioPresentation(Int32, Int32) Method

Definition

Selects an audio presentation.

[Android.Runtime.Register("onSelectAudioPresentation", "(II)Z", "GetOnSelectAudioPresentation_IIHandler", ApiSince=34)]
public virtual bool OnSelectAudioPresentation (int presentationId, int programId);
[<Android.Runtime.Register("onSelectAudioPresentation", "(II)Z", "GetOnSelectAudioPresentation_IIHandler", ApiSince=34)>]
abstract member OnSelectAudioPresentation : int * int -> bool
override this.OnSelectAudioPresentation : int * int -> bool

Parameters

presentationId
Int32

The ID of the audio presentation to select.

programId
Int32

The ID of the program providing the selected audio presentation.

Returns

true if the audio presentation selection was successful, false otherwise.

Attributes

Remarks

Selects an audio presentation.

On successfully selecting the audio presentation, #notifyAudioPresentationSelected is invoked to provide updated information about the selected audio presentation to applications.

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

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