AudioFocusRequestCompat
@UnstableApi
class AudioFocusRequestCompat
Compatibility version of an AudioFocusRequest with fallbacks for older Android versions.
Summary
Nested types |
|---|
|
Builder class for |
Public functions |
|
|---|---|
Boolean |
Returns whether the application that would use this |
AudioFocusRequestCompat.Builder! |
Returns new |
Boolean |
|
Int |
hashCode() |
Boolean |
Returns whether the application that would use this |
Public properties |
|
|---|---|
AudioAttributes! |
|
Handler! |
|
Int |
|
AudioManager.OnAudioFocusChangeListener! |
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.
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.