Home > @magiclane/maps-sdk > SoundPlayingService > getSoundPlayingPreferences

SoundPlayingService.getSoundPlayingPreferences() method

Retrieve sound playback preferences for the given severity.

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

Signature:

static getSoundPlayingPreferences(severity?: AlertSeverity): SoundPlayingPreferences;

Parameters

Parameter

Type

Description

severity

AlertSeverity

(Optional) Alert severity to retrieve preferences for

Returns:

SoundPlayingPreferences

A SoundPlayingPreferences instance for the requested severity