Compartir a través de


TvInputService.Session.OnSetStreamVolume(Single) Method

Definition

Sets the relative stream volume of the current TV input session.

[Android.Runtime.Register("onSetStreamVolume", "(F)V", "GetOnSetStreamVolume_FHandler")]
public abstract void OnSetStreamVolume (float volume);
[<Android.Runtime.Register("onSetStreamVolume", "(F)V", "GetOnSetStreamVolume_FHandler")>]
abstract member OnSetStreamVolume : single -> unit

Parameters

volume
Single

A volume value between 0.0f to 1.0f.

Attributes

Remarks

Sets the relative stream volume of the current TV input session.

The implementation should honor this request in order to handle audio focus changes or mute the current session when multiple sessions, possibly from different inputs are active. If the method has not yet been called, the implementation should assume the default value of 1.0f.

Java documentation for android.media.tv.TvInputService.Session.onSetStreamVolume(float).

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