SoundSessionRequestPreferences constructor

SoundSessionRequestPreferences({
  1. required AudioCategory audioCategory,
  2. required AudioOutput audioOutput,
  3. required Duration delay,
  4. required bool exclusive,
})

Create sound session request preferences.

Parameters

  • audioCategory: The audio category used for the session request.
  • audioOutput: Preferred audio output for the session.
  • delay: Delay before granting audio focus.
  • exclusive: Whether the session should be exclusive.

Implementation

SoundSessionRequestPreferences({
  required this.audioCategory,
  required this.audioOutput,
  required this.delay,
  required this.exclusive,
});