audioAttributeUsageType

var audioAttributeUsageType: Int

The audio attribute usage type to use when requesting audio focus on devices O and beyond.

Defaults to AudioAttributes.USAGE_VOICE_COMMUNICATION.

Refer to this compatibility table to ensure that your values match between android versions.

Note: Manual audio routing may not work appropriately when using non-default values.

Sources

SDK source
Link copied to clipboard