AudioFocusRequestCompat


@UnstableApi
class AudioFocusRequestCompat


Compatibility version of an AudioFocusRequest with fallbacks for older Android versions.

Summary

Nested types

Builder class for AudioFocusRequestCompat objects.

Public functions

AudioFocusRequestCompat.Builder!

Returns new Builder with all values of this instance pre-populated.

Boolean
equals(o: Any?)
Int
Boolean

Returns whether the application that would use this AudioFocusRequestCompat would pause when it is requested to duck.

Public functions

buildUpon

fun buildUpon(): AudioFocusRequestCompat.Builder!

Returns new Builder with all values of this instance pre-populated.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

willPauseWhenDucked

fun willPauseWhenDucked(): Boolean

Returns whether the application that would use this AudioFocusRequestCompat would pause when it is requested to duck. This value is only applicable on O and later.

Public properties

audioAttributes

val audioAttributesAudioAttributes!

focusChangeHandler

val focusChangeHandlerHandler!