createAudioRequest

@RequiresApi(value = 26)
open fun createAudioRequest(): AudioFocusRequest

Creates the request used when requesting audio focus.

The default implementation creates an audio focus request based on the settings of this object.

Only used on Android O and upwards. On lower platforms, the request will be made using the audioStreamType and focusMode settings.

Sources

SDK source
Link copied to clipboard