RingtoneManager.GetDefaultUri(RingtoneType) Method

Definition

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

[Android.Runtime.Register("getDefaultUri", "(I)Landroid/net/Uri;", "")]
public static Android.Net.Uri? GetDefaultUri (Android.Media.RingtoneType type);
[<Android.Runtime.Register("getDefaultUri", "(I)Landroid/net/Uri;", "")>]
static member GetDefaultUri : Android.Media.RingtoneType -> Android.Net.Uri

Parameters

type
RingtoneType

The ringtone type whose default should be returned.

Returns

Uri

The Uri of the default ringtone for the given type.

Attributes

Remarks

Returns the Uri for the default ringtone of a particular type. Rather than returning the actual ringtone's sound Uri, this will return the symbolic Uri which will resolved to the actual sound when played.

Java documentation for android.media.RingtoneManager.getDefaultUri(int).

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.

Applies to