Udostępnij za pośrednictwem


ValueAnimator.AreAnimatorsEnabled Method

Definition

Returns whether animators are currently enabled, system-wide.

[Android.Runtime.Register("areAnimatorsEnabled", "()Z", "", ApiSince=26)]
public static bool AreAnimatorsEnabled ();
[<Android.Runtime.Register("areAnimatorsEnabled", "()Z", "", ApiSince=26)>]
static member AreAnimatorsEnabled : unit -> bool

Returns

boolean Whether animators are currently enabled. The default value is true.

Attributes

Remarks

Returns whether animators are currently enabled, system-wide. By default, all animators are enabled. This can change if either the user sets a Developer Option to set the animator duration scale to 0 or by Battery Savery mode being enabled (which disables all animations).

Developers should not typically need to call this method, but should an app wish to show a different experience when animators are disabled, this return value can be used as a decider of which experience to offer.

Java documentation for android.animation.ValueAnimator.areAnimatorsEnabled().

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