Android.Media.ToneGenerator.StartTone Method
This method starts the playback of a tone of the specified type for the specified duration.

Syntax

[Android.Runtime.Register("startTone", "(II)Z", "GetStartTone_IIHandler")]
public virtual bool StartTone ([Android.Runtime.GeneratedEnum] Tone toneType, int durationMs)

Parameters

toneType
The type of tone generated @see ToneGenerator.StartTone(Tone).
durationMs
The tone duration in milliseconds. If the tone is limited in time by definition, the actual duration will be the minimum of durationMs and the defined tone duration. Setting durationMs to -1, is equivalent to calling ToneGenerator.StartTone(Tone).

Returns

Documentation for this section has not yet been entered.

Remarks

This method starts the playback of a tone of the specified type for the specified duration.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5