Home > @magiclane/maps-sdk > SoundPlayingService > setSoundPlayingPreferences
SoundPlayingService.setSoundPlayingPreferences() method
Apply sound playback preferences for the given severity.
Only fields present in the provided SoundPlayingPreferences instance are applied. To change preferences, modify an instance returned by getSoundPlayingPreferences and call this method to persist the change.
This method does not take into account any ongoing system interruptions.
Signature:
static setSoundPlayingPreferences(soundPlayingPreferences: SoundPlayingPreferences, severity?: AlertSeverity): void;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
soundPlayingPreferences |
Preferences to apply | |
|
severity |
(Optional) Target alert severity (defaults to AlertSeverity.information) |
Returns:
void