Condividi tramite


TelephonyManager.SetVoicemailRingtoneUri(PhoneAccountHandle, Uri) Method

Definition

Sets the per-account voicemail ringtone.

[Android.Runtime.Register("setVoicemailRingtoneUri", "(Landroid/telecom/PhoneAccountHandle;Landroid/net/Uri;)V", "GetSetVoicemailRingtoneUri_Landroid_telecom_PhoneAccountHandle_Landroid_net_Uri_Handler", ApiSince=26)]
public virtual void SetVoicemailRingtoneUri (Android.Telecom.PhoneAccountHandle? phoneAccountHandle, Android.Net.Uri? uri);
[<Android.Runtime.Register("setVoicemailRingtoneUri", "(Landroid/telecom/PhoneAccountHandle;Landroid/net/Uri;)V", "GetSetVoicemailRingtoneUri_Landroid_telecom_PhoneAccountHandle_Landroid_net_Uri_Handler", ApiSince=26)>]
abstract member SetVoicemailRingtoneUri : Android.Telecom.PhoneAccountHandle * Android.Net.Uri -> unit
override this.SetVoicemailRingtoneUri : Android.Telecom.PhoneAccountHandle * Android.Net.Uri -> unit

Parameters

phoneAccountHandle
PhoneAccountHandle

The handle for the PhoneAccount for which to set the voicemail ringtone.

uri
Uri

The URI for the ringtone to play when receiving a voicemail from a specific PhoneAccount.

Attributes

Remarks

Sets the per-account voicemail ringtone.

Requires that the calling app is the default dialer, or has carrier privileges (see #hasCarrierPrivileges, or has permission android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE.

This member is deprecated. Use android.provider.Settings#ACTION_CHANNEL_NOTIFICATION_SETTINGS instead.

Java documentation for android.telephony.TelephonyManager.setVoicemailRingtoneUri(android.telecom.PhoneAccountHandle, 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