Udostępnij za pośrednictwem


VolumeProvider.CurrentVolume Property

Definition

Gets the current volume. -or- Notifies the system that the current volume has been changed.

public int CurrentVolume { [Android.Runtime.Register("getCurrentVolume", "()I", "")] get; [Android.Runtime.Register("setCurrentVolume", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getCurrentVolume", "()I", "")>]
[<set: Android.Runtime.Register("setCurrentVolume", "(I)V", "")>]
member this.CurrentVolume : int with get, set

Property Value

The current volume.

Attributes

Remarks

Property getter documentation:

Gets the current volume. This will be the last value set by #setCurrentVolume(int).

Java documentation for android.media.VolumeProvider.getCurrentVolume().

Property setter documentation:

Notifies the system that the current volume has been changed. This must be called every time the volume changes to ensure it is displayed properly.

Java documentation for android.media.VolumeProvider.setCurrentVolume(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