audioAttributeUsageType

var audioAttributeUsageType: Int

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

Defaults to AudioAttributes.USAGE_MEDIA.

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

Sources

SDK source
Link copied to clipboard