Share via


RingtonePreference.OnSaveRingtone(Uri) Method

Definition

Called when a ringtone is chosen.

[Android.Runtime.Register("onSaveRingtone", "(Landroid/net/Uri;)V", "GetOnSaveRingtone_Landroid_net_Uri_Handler")]
protected virtual void OnSaveRingtone (Android.Net.Uri? ringtoneUri);
[<Android.Runtime.Register("onSaveRingtone", "(Landroid/net/Uri;)V", "GetOnSaveRingtone_Landroid_net_Uri_Handler")>]
abstract member OnSaveRingtone : Android.Net.Uri -> unit
override this.OnSaveRingtone : Android.Net.Uri -> unit

Parameters

ringtoneUri
Uri

The chosen ringtone's Uri. Can be null.

Attributes

Remarks

Called when a ringtone is chosen.

By default, this saves the ringtone URI to the persistent storage as a string.

Java documentation for android.preference.RingtonePreference.onSaveRingtone(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