AccessibilityService.SetAnimationScale(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the system settings values that control the scaling factor for animations.
[Android.Runtime.Register("setAnimationScale", "(F)V", "GetSetAnimationScale_FHandler", ApiSince=33)]
public virtual void SetAnimationScale (float scale);
[<Android.Runtime.Register("setAnimationScale", "(F)V", "GetSetAnimationScale_FHandler", ApiSince=33)>]
abstract member SetAnimationScale : single -> unit
override this.SetAnimationScale : single -> unit
Parameters
- scale
- Single
The scaling factor for all animations.
- Attributes
Remarks
Sets the system settings values that control the scaling factor for animations. The scale controls the animation playback speed for animations that respect these settings. Animations that do not respect the settings values will not be affected by this function. A lower scale value results in a faster speed. A value of 0
disables animations entirely. When animations are disabled services receive window change events more quickly which can reduce the potential by confusion by reducing the time during which windows are in transition.
Java documentation for android.accessibilityservice.AccessibilityService.setAnimationScale(float)
.
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.