RingtoneManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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 |
ExtraRingtoneExistingUri |
Given to the ringtone picker as a |
ExtraRingtoneIncludeDrm |
Obsolete.
Given to the ringtone picker as a boolean. |
ExtraRingtonePickedUri |
Returned from the ringtone picker as a |
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 |
ExtraRingtoneType |
Given to the ringtone picker as an int. |
Properties
Class |
Returns the runtime class of this |
Cursor |
Returns a |
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 |
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 |
GetDefaultType(Uri) |
Returns the type of a default |
GetDefaultUri(RingtoneType) |
Returns the |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetRingtone(Context, Uri) |
Returns a |
GetRingtone(Int32) |
Gets a |
GetRingtonePosition(Uri) |
Gets the position of a |
GetRingtoneUri(Int32) |
Gets a |
GetValidRingtoneUri(Context) |
Returns a valid ringtone URI. |
HasHapticChannels(Context, Uri) |
Returns if the |
HasHapticChannels(Int32) |
Returns if the |
HasHapticChannels(Uri) |
Returns if the |
InferStreamType() |
Infers the volume stream type based on what type of ringtones this manager is returning. |
InvokeStopPreviousRingtone() |
Stops playing the last |
IsDefault(Uri) |
Returns whether the given |
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 |
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) |