Compartir a través de


RingtoneManager.SetActualDefaultRingtoneUri Method

Definition

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

[Android.Runtime.Register("setActualDefaultRingtoneUri", "(Landroid/content/Context;ILandroid/net/Uri;)V", "")]
public static void SetActualDefaultRingtoneUri (Android.Content.Context? context, Android.Media.RingtoneType type, Android.Net.Uri? ringtoneUri);
[<Android.Runtime.Register("setActualDefaultRingtoneUri", "(Landroid/content/Context;ILandroid/net/Uri;)V", "")>]
static member SetActualDefaultRingtoneUri : Android.Content.Context * Android.Media.RingtoneType * Android.Net.Uri -> unit

Parameters

context
Context

A context used for querying.

type
RingtoneType

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

ringtoneUri
Uri

A Uri pointing to the default sound to set.

Attributes

Remarks

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

Java documentation for android.media.RingtoneManager.setActualDefaultRingtoneUri(android.content.Context, int, android.net.Uri).

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.GetActualDefaultRingtoneUri(Android.Content.Context%2c+Android.Media.RingtoneType)>