VolumeProvider.OnSetVolumeTo(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Override to handle requests to set the volume of the current output.
[Android.Runtime.Register("onSetVolumeTo", "(I)V", "GetOnSetVolumeTo_IHandler")]
public virtual void OnSetVolumeTo (int volume);
[<Android.Runtime.Register("onSetVolumeTo", "(I)V", "GetOnSetVolumeTo_IHandler")>]
abstract member OnSetVolumeTo : int -> unit
override this.OnSetVolumeTo : int -> unit
Parameters
- volume
- Int32
The volume to set the output to.
- Attributes
Remarks
Override to handle requests to set the volume of the current output. After the volume has been modified #setCurrentVolume
must be called to notify the system.
Java documentation for android.media.VolumeProvider.onSetVolumeTo(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.