Language

AudioFocusRequestClass.Builder.SetAcceptsDelayedFocusGain(Boolean) Method

Definition

Marks this focus request as compatible with delayed focus.

[Android.Runtime.Register("setAcceptsDelayedFocusGain", "(Z)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)]
public Android.Media.AudioFocusRequestClass.Builder SetAcceptsDelayedFocusGain(bool acceptsDelayedFocusGain);
[<Android.Runtime.Register("setAcceptsDelayedFocusGain", "(Z)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)>]
member this.SetAcceptsDelayedFocusGain : bool -> Android.Media.AudioFocusRequestClass.Builder

Parameters

acceptsDelayedFocusGain
Boolean

Use true if the application supports delayed focus. If true, also set a focus listener to be notified of delayed focus gain, for example with SetOnAudioFocusChangeListener(AudioManager+IOnAudioFocusChangeListener, Handler).

Returns

this Builder instance. This value cannot be null.

Attributes

Remarks

Marks this focus request as compatible with delayed focus. See AudioFocusRequestClass for more details about delayed focus.

Android reference for android.media.AudioFocusRequest.Builder.setAcceptsDelayedFocusGain.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to