setDefaultUri method

Future<void> setDefaultUri(
  1. RingtoneType type,
  2. String? ringtoneUri
)

Sets the default ringtone URI for the given type.

ringtoneUri - Ringtone URI to set as default, or null to clear.

Implementation

Future<void> setDefaultUri(RingtoneType type, String? ringtoneUri) async {
  await _invoke<void>('ringtones.setDefaultUri', {
    'type': type.name,
    'ringtoneUri': ringtoneUri,
  });
}