Android Guides | Samples

Android.Media.Ringtone Class

Ringtone provides a quick method for playing a ringtone, notification, or other similar types of sounds.

See Also: Ringtone

Syntax

[Android.Runtime.Register("android/media/Ringtone", DoNotGenerateAcw=true)]
public class Ringtone : Object

Remarks

Ringtone provides a quick method for playing a ringtone, notification, or other similar types of sounds.

For ways of retrieving Ringtone objects or to show a ringtone picker, see RingtoneManager.

See Also

[Android Documentation]

Requirements

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

The members of Android.Media.Ringtone are listed below.

See Also: Object

Protected Constructors

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

Public Properties

AudioAttributesAudioAttributes. Returns the AudioAttributes used by this object.
[read-only]
IsPlayingBoolean. Whether this ringtone is currently playing.
StreamTypeStream. Gets the stream type where this ringtone will be played.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetTitle(Context) : String
Returns a human-presentable title for ringtone.
Play()
Plays the ringtone.
Stop()
Stops a playing ringtone.