다음을 통해 공유


MediaRoute2ProviderService.OnSetSessionVolume(Int64, String, Int32) Method

Definition

Called when MediaRouter2.RoutingController#setVolume(int) is called on a routing session of the provider

[Android.Runtime.Register("onSetSessionVolume", "(JLjava/lang/String;I)V", "GetOnSetSessionVolume_JLjava_lang_String_IHandler", ApiSince=30)]
public abstract void OnSetSessionVolume (long requestId, string sessionId, int volume);
[<Android.Runtime.Register("onSetSessionVolume", "(JLjava/lang/String;I)V", "GetOnSetSessionVolume_JLjava_lang_String_IHandler", ApiSince=30)>]
abstract member OnSetSessionVolume : int64 * string * int -> unit

Parameters

requestId
Int64

the ID of this request

sessionId
String

the ID of the routing session

volume
Int32

the target volume

Attributes

Remarks

Called when MediaRouter2.RoutingController#setVolume(int) is called on a routing session of the provider

Java documentation for android.media.MediaRoute2ProviderService.onSetSessionVolume(long, java.lang.String, 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