다음을 통해 공유


MediaRouter.VolumeCallback.OnVolumeUpdateRequest Method

Definition

Called when the volume for the route should be increased or decreased.

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

Parameters

info
MediaRouter.RouteInfo

the route affected by this event

direction
Int32

an integer indicating whether the volume is to be increased (positive value) or decreased (negative value). For bundled changes, the absolute value indicates the number of changes in the same direction, e.g. +3 corresponds to three "volume up" changes.

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