Dela via


IWindowInsetsAnimationController.Finish(Boolean) Method

Definition

Finishes the animation, and leaves the windows shown or hidden.

[Android.Runtime.Register("finish", "(Z)V", "GetFinish_ZHandler:Android.Views.IWindowInsetsAnimationControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void Finish (bool shown);
[<Android.Runtime.Register("finish", "(Z)V", "GetFinish_ZHandler:Android.Views.IWindowInsetsAnimationControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member Finish : bool -> unit

Parameters

shown
Boolean

if true, the windows will be shown after finishing the animation. Otherwise they will be hidden.

Attributes

Remarks

Finishes the animation, and leaves the windows shown or hidden.

After invoking #finish, this instance is no longer #isReady ready.

Note: Finishing an animation implicitly #setInsetsAndAlpha sets insets and alpha according to the requested end state without any further animation.

Java documentation for android.view.WindowInsetsAnimationController.finish(boolean).

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