canPlaySounds property
bool
get
canPlaySounds
Returns whether automatic playback of TTS instructions is enabled.
Returns
truewhen automatic playback is enabled,falseotherwise.
Also see:
- NavigationService - Service resposbible for navigation instructions.
Implementation
static bool get canPlaySounds {
final OperationResult result = staticMethod(
'SoundService',
'canPlaySounds',
);
return result['result'];
}
set
canPlaySounds
(bool canPlaySound)
Enable or disable automatic playback of TTS instructions.
Parameters
canPlaySound:trueto enable automatic playback,falseto disable it.
Also see:
- NavigationService - Service resposbible for navigation instructions.
- cancelNavigationSoundsPlaying - Cancel currently playing navigation sounds.
Implementation
static set canPlaySounds(bool canPlaySound) {
staticMethod('SoundService', 'setCanPlaySounds', args: canPlaySound);
}