Sdílet prostřednictvím


ToneGenerator Constructors

Definition

Overloads

ToneGenerator(Stream, Volume)
Obsolete.

ToneGenerator class contructor specifying output stream type and volume.

ToneGenerator(Stream, Int32)

ToneGenerator class contructor specifying output stream type and volume.

ToneGenerator(IntPtr, JniHandleOwnership)

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

ToneGenerator(Stream, Volume)

Caution

It was based on wrong use of enum. Please use ToneGenerator(Stream,int) instead.

ToneGenerator class contructor specifying output stream type and volume.

[System.Obsolete("It was based on wrong use of enum. Please use ToneGenerator(Stream,int) instead.")]
public ToneGenerator (Android.Media.Stream streamType, Android.Media.Volume volume);
[<System.Obsolete("It was based on wrong use of enum. Please use ToneGenerator(Stream,int) instead.")>]
new Android.Media.ToneGenerator : Android.Media.Stream * Android.Media.Volume -> Android.Media.ToneGenerator

Parameters

streamType
Stream
volume
Volume
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

ToneGenerator(Stream, Int32)

ToneGenerator class contructor specifying output stream type and volume.

[Android.Runtime.Register(".ctor", "(II)V", "")]
public ToneGenerator (Android.Media.Stream streamType, int volume);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Android.Media.ToneGenerator : Android.Media.Stream * int -> Android.Media.ToneGenerator

Parameters

streamType
Stream

The streame type used for tone playback (e.g. STREAM_MUSIC).

volume
Int32

The volume of the tone, given in percentage of maximum volume (from 0-100).

Attributes

Remarks

ToneGenerator class contructor specifying output stream type and volume.

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

ToneGenerator(IntPtr, JniHandleOwnership)

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

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

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