Freigeben über


AudioFocusRequestClass.Builder.SetOnAudioFocusChangeListener Method

Definition

Overloads

SetOnAudioFocusChangeListener(AudioManager+IOnAudioFocusChangeListener)
SetOnAudioFocusChangeListener(AudioManager+IOnAudioFocusChangeListener, Handler)

SetOnAudioFocusChangeListener(AudioManager+IOnAudioFocusChangeListener)

[Android.Runtime.Register("setOnAudioFocusChangeListener", "(Landroid/media/AudioManager$OnAudioFocusChangeListener;)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)]
public Android.Media.AudioFocusRequestClass.Builder SetOnAudioFocusChangeListener (Android.Media.AudioManager.IOnAudioFocusChangeListener listener);
[<Android.Runtime.Register("setOnAudioFocusChangeListener", "(Landroid/media/AudioManager$OnAudioFocusChangeListener;)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)>]
member this.SetOnAudioFocusChangeListener : Android.Media.AudioManager.IOnAudioFocusChangeListener -> Android.Media.AudioFocusRequestClass.Builder

Parameters

Returns

Attributes

Remarks

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

SetOnAudioFocusChangeListener(AudioManager+IOnAudioFocusChangeListener, Handler)

[Android.Runtime.Register("setOnAudioFocusChangeListener", "(Landroid/media/AudioManager$OnAudioFocusChangeListener;Landroid/os/Handler;)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)]
public Android.Media.AudioFocusRequestClass.Builder SetOnAudioFocusChangeListener (Android.Media.AudioManager.IOnAudioFocusChangeListener listener, Android.OS.Handler handler);
[<Android.Runtime.Register("setOnAudioFocusChangeListener", "(Landroid/media/AudioManager$OnAudioFocusChangeListener;Landroid/os/Handler;)Landroid/media/AudioFocusRequest$Builder;", "", ApiSince=26)>]
member this.SetOnAudioFocusChangeListener : Android.Media.AudioManager.IOnAudioFocusChangeListener * Android.OS.Handler -> Android.Media.AudioFocusRequestClass.Builder

Parameters

handler
Handler

Returns

Attributes

Remarks

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