RingtonePreference.OnRestoreRingtone Method

Definition

Called when the chooser is about to be shown and the current ringtone should be marked.

[Android.Runtime.Register("onRestoreRingtone", "()Landroid/net/Uri;", "GetOnRestoreRingtoneHandler")]
protected virtual Android.Net.Uri? OnRestoreRingtone ();
[<Android.Runtime.Register("onRestoreRingtone", "()Landroid/net/Uri;", "GetOnRestoreRingtoneHandler")>]
abstract member OnRestoreRingtone : unit -> Android.Net.Uri
override this.OnRestoreRingtone : unit -> Android.Net.Uri

Returns

Uri

The ringtone to be marked as the current ringtone.

Attributes

Remarks

Called when the chooser is about to be shown and the current ringtone should be marked. Can return null to not mark any ringtone.

By default, this restores the previous ringtone URI from the persistent storage.

Java documentation for android.preference.RingtonePreference.onRestoreRingtone().

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