AnimationHandler
Handles enabling and disabling UIKit animations.
Handler should be added to LaunchEnvironmentManager
.
Used key: AM_ANIMATION_KEY
/ AutoMateLaunchOptionKey.animation
.
Supported values (case insensitive):
true
yes
1
false
no
0
Example:
let launchManager = LaunchEnvironmentManager()
launchManager.add(handler: AnimationHandler(), for: .animation)
launchManager.setup()
Note
Launch environment for the handler can be set by the AnimationLaunchEnvironment
from the AutoMate project.
Note
AnimationHandler
should be used with the AM_ANIMATION_KEY
key, but its implementation doesn’t require to use it.
Any key provided to the LaunchEnvironmentManager.add(handler:for:)
method will be handled correctly.
Seealso
-
Initialize
AnimationHandler
.
-
Handles value for the
AM_ANIMATION_KEY
key and enables or disables UIKit animation.Note
AnimationHandler
should be used with theAM_ANIMATION_KEY
key, but its implementation doesn’t require to use it. Any key provided to theLaunchEnvironmentManager.add(handler:for:)
method will be handled correctly.Requires
Method support only given set of values (case insensitive):
true
yes
1
false
no
0