PickRingtoneContract

Contract for picking ringtones. Returns one of:

  • An uri of the picked ringtone,

  • a Uri that equals System#DEFAULT_RINGTONE_URI, System#DEFAULT_NOTIFICATION_URI, or System#DEFAULT_ALARM_ALERT_URI if the default was chosen,

  • null if the "Silent" item was picked or if there was an error.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class RingtoneOptions(val ringtoneType: Int, val showDefault: Boolean = true, val allowSilent: Boolean = false, val title: String? = null, val defaultUri: Uri? = null, val existingUri: Uri? = null)

Ringtone options

Functions

Link copied to clipboard
Link copied to clipboard
open override fun parseResult(resultCode: Int, intent: Intent?): Uri?