RingtoneManager RingtoneManager Class

Definition

RingtoneManager provides access to ringtones, notification, and other types of sounds.

[Android.Runtime.Register("android/media/RingtoneManager", ApiSince=1, DoNotGenerateAcw=true)]
public class RingtoneManager : Java.Lang.Object
type RingtoneManager = class
    inherit Object
Inheritance
RingtoneManagerRingtoneManager
Attributes

Remarks

Android platform documentation

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.

Constructors

RingtoneManager(Activity) RingtoneManager(Activity)

Constructs a RingtoneManager.

RingtoneManager(Context) RingtoneManager(Context)

Constructs a RingtoneManager.

RingtoneManager(IntPtr, JniHandleOwnership) RingtoneManager(IntPtr, JniHandleOwnership)

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

Fields

ActionRingtonePicker ActionRingtonePicker

Activity Action: Shows a ringtone picker.

ExtraRingtoneDefaultUri ExtraRingtoneDefaultUri

Given to the ringtone picker as a Uri.

ExtraRingtoneExistingUri ExtraRingtoneExistingUri

Given to the ringtone picker as a Uri.

ExtraRingtoneIncludeDrm ExtraRingtoneIncludeDrm

Given to the ringtone picker as a boolean.

ExtraRingtonePickedUri ExtraRingtonePickedUri

Returned from the ringtone picker as a Uri.

ExtraRingtoneShowDefault ExtraRingtoneShowDefault

Given to the ringtone picker as a boolean.

ExtraRingtoneShowSilent ExtraRingtoneShowSilent

Given to the ringtone picker as a boolean.

ExtraRingtoneTitle ExtraRingtoneTitle

Given to the ringtone picker as a ICharSequence.

ExtraRingtoneType ExtraRingtoneType

Given to the ringtone picker as an int.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Cursor Cursor

Returns a ICursor of all the ringtones available.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IncludeDrm IncludeDrm

Returns whether DRM ringtones will be included.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
StopPreviousRingtone StopPreviousRingtone
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetActualDefaultRingtoneUri(Context, RingtoneType) GetActualDefaultRingtoneUri(Context, RingtoneType)

Gets the current default sound's Uri.

GetDefaultType(Uri) GetDefaultType(Uri)

Returns the type of a default Uri.

GetDefaultUri(RingtoneType) GetDefaultUri(RingtoneType)

Returns the Uri for the default ringtone of a particular type.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetRingtone(Context, Uri) GetRingtone(Context, Uri)

Returns a Ringtone for a given sound URI.

GetRingtone(Int32) GetRingtone(Int32)

Gets a Ringtone for the ringtone at the given position in the ICursor.

GetRingtonePosition(Uri) GetRingtonePosition(Uri)

Gets the position of a Uri within this RingtoneManager.

GetRingtoneUri(Int32) GetRingtoneUri(Int32)

Gets a Uri for the ringtone at the given position in the ICursor.

GetValidRingtoneUri(Context) GetValidRingtoneUri(Context)

Returns a valid ringtone URI.

InferStreamType() InferStreamType()

Infers the playback stream type based on what type of ringtones this manager is returning.

InvokeStopPreviousRingtone() InvokeStopPreviousRingtone()

Stops playing the last Ringtone retrieved from this.

IsDefault(Uri) IsDefault(Uri)

Returns whether the given Uri is one of the default ringtones.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetActualDefaultRingtoneUri(Context, RingtoneType, Uri) SetActualDefaultRingtoneUri(Context, RingtoneType, Uri)

Sets the Uri of the default sound for a given sound type.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetType(RingtoneType) SetType(RingtoneType)

Sets which type(s) of ringtones will be listed by this.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to