Freigeben über


MediaRouter2.RoutingController.Volume Property

Definition

Gets the current volume of the session. -or- Requests a volume change for the remote session asynchronously.

public virtual int Volume { [Android.Runtime.Register("getVolume", "()I", "GetGetVolumeHandler", ApiSince=30)] get; [Android.Runtime.Register("setVolume", "(I)V", "GetSetVolume_IHandler", ApiSince=30)] set; }
[<get: Android.Runtime.Register("getVolume", "()I", "GetGetVolumeHandler", ApiSince=30)>]
[<set: Android.Runtime.Register("setVolume", "(I)V", "GetSetVolume_IHandler", ApiSince=30)>]
member this.Volume : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Gets the current volume of the session.

When it's available, it represents the volume of routing session, which is a group of selected routes. Use MediaRoute2Info#getVolume() to get the volume of a route,

Java documentation for android.media.MediaRouter2.RoutingController.getVolume().

Property setter documentation:

Requests a volume change for the remote session asynchronously.

Java documentation for android.media.MediaRouter2.RoutingController.setVolume(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