次の方法で共有


RingtoneManager.GetActualDefaultRingtoneUri(Context, RingtoneType) Method

Definition

Gets the current default sound's Uri.

[Android.Runtime.Register("getActualDefaultRingtoneUri", "(Landroid/content/Context;I)Landroid/net/Uri;", "")]
public static Android.Net.Uri? GetActualDefaultRingtoneUri (Android.Content.Context? context, Android.Media.RingtoneType type);
[<Android.Runtime.Register("getActualDefaultRingtoneUri", "(Landroid/content/Context;I)Landroid/net/Uri;", "")>]
static member GetActualDefaultRingtoneUri : Android.Content.Context * Android.Media.RingtoneType -> Android.Net.Uri

Parameters

context
Context

A context used for querying.

type
RingtoneType

The type whose default sound should be returned. One of #TYPE_RINGTONE, #TYPE_NOTIFICATION, or #TYPE_ALARM.

Returns

Uri

A Uri pointing to the default sound for the sound type.

Attributes

Remarks

Gets the current default sound's Uri. This will give the actual sound Uri, instead of using this, most clients can use System#DEFAULT_RINGTONE_URI.

Java documentation for android.media.RingtoneManager.getActualDefaultRingtoneUri(android.content.Context, 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

See also

  • <xref:Android.Media.RingtoneManager.SetActualDefaultRingtoneUri(Android.Content.Context%2c+Android.Media.RingtoneType%2c+Android.Media.RingtoneType)>