Create sound session request preferences.
Preferences configuration
The audio category used for the session request
Preferred audio output for the session
Delay before granting audio focus in milliseconds
Whether the session should be exclusive
ReadonlyaudioThe audio category used for the session request.
See AudioCategory for common categories such as playback or recording.
ReadonlyaudioPreferred audio output for the session.
ReadonlydelayDelay before granting audio focus (in milliseconds).
ReadonlyexclusiveWhether the session should be exclusive.
When true other audio output should be silenced during the session.
Hash code calculation
InternalSerializes this instance to a JSON-compatible object.
Used internally, not intended for direct use by consumers. The object structure may change without notice.
StaticfromInternalDeserializes a JSON-compatible object to create an instance.
Used internally, not intended for direct use by consumers. The expected object structure may change without notice.
Preferences used when requesting an audio session from the platform.
This object controls how the SDK requests audio focus (category, preferred output, delay before granting focus and exclusivity).
Modifications to an instance of this class are not applied automatically. To apply changes, call SoundPlayingService.soundSessionRequestPreferences.
See
SoundPlayingService.soundSessionRequestPreferences - Get or set the preferences