Udostępnij za pośrednictwem


IWindowManager.RemoveProposedRotationListener(IIntConsumer) Method

Definition

Removes a listener, previously added with #addProposedRotationListener.

[Android.Runtime.Register("removeProposedRotationListener", "(Ljava/util/function/IntConsumer;)V", "GetRemoveProposedRotationListener_Ljava_util_function_IntConsumer_Handler:Android.Views.IWindowManager, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual void RemoveProposedRotationListener (Java.Util.Functions.IIntConsumer listener);
[<Android.Runtime.Register("removeProposedRotationListener", "(Ljava/util/function/IntConsumer;)V", "GetRemoveProposedRotationListener_Ljava_util_function_IntConsumer_Handler:Android.Views.IWindowManager, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member RemoveProposedRotationListener : Java.Util.Functions.IIntConsumer -> unit
override this.RemoveProposedRotationListener : Java.Util.Functions.IIntConsumer -> unit

Parameters

listener
IIntConsumer

The listener to be removed.

Attributes

Remarks

Removes a listener, previously added with #addProposedRotationListener. It is recommended to call when the associated context no longer has visible components. No-op if the provided listener is not registered.

Java documentation for android.view.WindowManager.removeProposedRotationListener(java.util.function.IntConsumer).

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