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, note that you must also set a focus listener to be notified of delayed focus gain, with setOnAudioFocusChangeListener(OnAudioFocusChangeListener,Handler).

Returns

this Builder instance. This value cannot be null.

Attributes

Remarks

Marks this focus request as compatible with delayed focus. See more details about delayed focus in the AudioFocusRequest class documentation.

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