Aracılığıyla paylaş


RingtoneManager Class

Definition

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

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

Remarks

RingtoneManager provides access to ringtones, notification, and other types of sounds. It manages querying the different media providers and combines the results into a single cursor. It also provides a Ringtone for each ringtone. We generically call these sounds ringtones, however the #TYPE_RINGTONE refers to the type of sounds that are suitable for the phone ringer.

To show a ringtone picker to the user, use the #ACTION_RINGTONE_PICKER intent to launch the picker as a subactivity.

Java documentation for android.media.RingtoneManager.

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)

Constructs a RingtoneManager.

RingtoneManager(Context)

Constructs a RingtoneManager.

RingtoneManager(IntPtr, JniHandleOwnership)

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

Fields

ActionRingtonePicker

Activity Action: Shows a ringtone picker.

ExtraRingtoneDefaultUri

Given to the ringtone picker as a Uri.

ExtraRingtoneExistingUri

Given to the ringtone picker as a Uri.

ExtraRingtoneIncludeDrm
Obsolete.

Given to the ringtone picker as a boolean.

ExtraRingtonePickedUri

Returned from the ringtone picker as a Uri.

ExtraRingtoneShowDefault

Given to the ringtone picker as a boolean.

ExtraRingtoneShowSilent

Given to the ringtone picker as a boolean.

ExtraRingtoneTitle

Given to the ringtone picker as a CharSequence.

ExtraRingtoneType

Given to the ringtone picker as an int.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Cursor

Returns a Cursor of all the ringtones available.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IncludeDrm
Obsolete.

Returns whether DRM ringtones will be included. -or- Sets whether to include DRM ringtones.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
StopPreviousRingtone

Whether retrieving another Ringtone will stop playing the previously retrieved Ringtone.

ThresholdClass

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

ThresholdType

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

Methods

Clone()

Creates and returns a copy of this object.

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

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetActualDefaultRingtoneUri(Context, RingtoneType)

Gets the current default sound's Uri.

GetDefaultType(Uri)

Returns the type of a default Uri.

GetDefaultUri(RingtoneType)

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

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetRingtone(Context, Uri)

Returns a Ringtone for a given sound URI.

GetRingtone(Int32)

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

GetRingtonePosition(Uri)

Gets the position of a Uri within this RingtoneManager.

GetRingtoneUri(Int32)

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

GetValidRingtoneUri(Context)

Returns a valid ringtone URI.

HasHapticChannels(Context, Uri)

Returns if the Ringtone from a given sound URI contains haptics channels or not.

HasHapticChannels(Int32)

Returns if the Ringtone at the given position in the Cursor contains haptic channels.

HasHapticChannels(Uri)

Returns if the Ringtone from a given sound URI contains haptic channels or not.

InferStreamType()

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

InvokeStopPreviousRingtone()

Stops playing the last Ringtone retrieved from this.

IsDefault(Uri)

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

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OpenDefaultRingtoneUri(Context, Uri)

Opens a raw file descriptor to read the data under the given default URI.

SetActualDefaultRingtoneUri(Context, RingtoneType, Uri)

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

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetType(RingtoneType)

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

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

Returns a string representation of the object.

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

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to