canPlaySounds property

bool get canPlaySounds

Returns whether automatic playback of TTS instructions is enabled.

Returns

  • true when automatic playback is enabled, false otherwise.

Also see:

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: true to enable automatic playback, false to disable it.

Also see:

Implementation

static set canPlaySounds(bool canPlaySound) {
  staticMethod('SoundService', 'setCanPlaySounds', args: canPlaySound);
}