getSoundPlayingPreferences static method
SoundPlayingPreferences
getSoundPlayingPreferences({
- 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
- A SoundPlayingPreferences instance for the requested severity.
Implementation
static SoundPlayingPreferences getSoundPlayingPreferences({
AlertSeverity severity = AlertSeverity.information,
}) {
final OperationResult result = staticMethod(
'SoundService',
'getSoundPlayingPreferences',
args: severity.id,
);
return SoundPlayingPreferences.fromMap(result['result']);
}