다음을 통해 공유


VolumeProvider Constructors

Definition

Overloads

VolumeProvider(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

VolumeProvider(VolumeControl, Int32, Int32)

Creates a new volume provider for handling volume events.

VolumeProvider(VolumeControl, Int32, Int32, String)

Creates a new volume provider for handling volume events.

VolumeProvider(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected VolumeProvider (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.VolumeProvider : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.VolumeProvider

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

VolumeProvider(VolumeControl, Int32, Int32)

Creates a new volume provider for handling volume events.

[Android.Runtime.Register(".ctor", "(III)V", "")]
public VolumeProvider (Android.Media.VolumeControl volumeControl, int maxVolume, int currentVolume);
[<Android.Runtime.Register(".ctor", "(III)V", "")>]
new Android.Media.VolumeProvider : Android.Media.VolumeControl * int * int -> Android.Media.VolumeProvider

Parameters

volumeControl
VolumeControl

See #getVolumeControl().

maxVolume
Int32

The maximum allowed volume.

currentVolume
Int32

The current volume on the output.

Attributes

Remarks

Creates a new volume provider for handling volume events.

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

VolumeProvider(VolumeControl, Int32, Int32, String)

Creates a new volume provider for handling volume events.

[Android.Runtime.Register(".ctor", "(IIILjava/lang/String;)V", "", ApiSince=30)]
public VolumeProvider (Android.Media.VolumeControl volumeControl, int maxVolume, int currentVolume, string? volumeControlId);
[<Android.Runtime.Register(".ctor", "(IIILjava/lang/String;)V", "", ApiSince=30)>]
new Android.Media.VolumeProvider : Android.Media.VolumeControl * int * int * string -> Android.Media.VolumeProvider

Parameters

volumeControl
VolumeControl

See #getVolumeControl().

maxVolume
Int32

The maximum allowed volume.

currentVolume
Int32

The current volume on the output.

volumeControlId
String

See #getVolumeControlId().

Attributes

Remarks

Creates a new volume provider for handling volume events.

Java documentation for android.media.VolumeProvider.VolumeProvider(int, int, int, java.lang.String).

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