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

Boolean

Returns whether the application that would use this AudioFocusRequestCompat supports a focus gain granted after a temporary request failure.

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

acceptsDelayedFocusGain

fun acceptsDelayedFocusGain(): Boolean

Returns whether the application that would use this AudioFocusRequestCompat supports a focus gain granted after a temporary request failure. This value is only applicable on O and later.

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!