AnimationHandler
Handles enabling and disabling UIKit animations.
Handler should be added to LaunchEnvironmentManager.
Used key: AM_ANIMATION_KEY / AutoMateLaunchOptionKey.animation.
Supported values (case insensitive):
trueyes1falseno0
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_KEYkey and enables or disables UIKit animation.Note
AnimationHandlershould be used with theAM_ANIMATION_KEYkey, 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):
trueyes1falseno0
AnimationHandler Structure Reference