setAnimations

suspend fun setAnimations(enabled: Boolean)(source)

Turns the window, transition and animator animations off (all three scales 0) or on (all

  1. for this session. Like every device condition below, the value the device had before the session's first change is restored on detach (or by the next attach when the daemon died first), and the change is read back: a value the device did not take throws ServerException (FailureReason.DEVICE_SETTING). info reports DeviceInfo.animationsEnabled.