MediaRouter.VolumeCallback.OnVolumeSetRequest Method

Definition

Called when the volume for the route should be set to the given value

[Android.Runtime.Register("onVolumeSetRequest", "(Landroid/media/MediaRouter$RouteInfo;I)V", "GetOnVolumeSetRequest_Landroid_media_MediaRouter_RouteInfo_IHandler")]
public abstract void OnVolumeSetRequest (Android.Media.MediaRouter.RouteInfo? info, int volume);
[<Android.Runtime.Register("onVolumeSetRequest", "(Landroid/media/MediaRouter$RouteInfo;I)V", "GetOnVolumeSetRequest_Landroid_media_MediaRouter_RouteInfo_IHandler")>]
abstract member OnVolumeSetRequest : Android.Media.MediaRouter.RouteInfo * int -> unit

Parameters

info
MediaRouter.RouteInfo

the route affected by this event

volume
Int32

an integer indicating the new volume value that should be used, always between 0 and the value set by SetVolumeMax(Int32).

Attributes

Remarks

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