getSoundPlayingPreferences static method

SoundPlayingPreferences getSoundPlayingPreferences({
  1. AlertSeverity severity = AlertSeverity.information,
})

Retrieve sound playback preferences for the given severity.

The returned instance is a copy; call setSoundPlayingPreferences to persist modifications.

Parameters

  • severity: Alert severity to retrieve preferences for.

Returns

Implementation

static SoundPlayingPreferences getSoundPlayingPreferences({
  AlertSeverity severity = AlertSeverity.information,
}) {
  final OperationResult result = staticMethod(
    'SoundService',
    'getSoundPlayingPreferences',
    args: severity.id,
  );
  return SoundPlayingPreferences.fromMap(result['result']);
}