RingtoneManager.SetRingtoneUri(Context, Uri, PhoneAccountHandle) Method
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.
Sets the Uri of the sound by PhoneAccountHandle for TYPE_RINGTONE.
[Android.Runtime.Register("setRingtoneUri", "(Landroid/content/Context;Landroid/net/Uri;Landroid/telecom/PhoneAccountHandle;)V", "", ApiSince=37)]
public static void SetRingtoneUri(Android.Content.Context context, Android.Net.Uri? ringtoneUri, Android.Telecom.PhoneAccountHandle? phoneAccountHandle);
[<Android.Runtime.Register("setRingtoneUri", "(Landroid/content/Context;Landroid/net/Uri;Landroid/telecom/PhoneAccountHandle;)V", "", ApiSince=37)>]
static member SetRingtoneUri : Android.Content.Context * Android.Net.Uri * Android.Telecom.PhoneAccountHandle -> unit
Parameters
- context
- Context
A context used for querying.
- ringtoneUri
- Uri
A Uri pointing to the sound to set. This parameter can be null, in
which case the API behaves like
#setActualDefaultRingtoneUri(Context, int, Uri).
- phoneAccountHandle
- PhoneAccountHandle
The PhoneAccountHandle whose sound should be set.
This parameter can be null, in which case the API behaves
like #setActualDefaultRingtoneUri(Context, int, Uri).
- Attributes
Remarks
Sets the Uri of the sound by PhoneAccountHandle for TYPE_RINGTONE.
Android reference for android.media.RingtoneManager.setRingtoneUri.
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.