# GraffitiAnimatorControl
Class Inherits GraffitiAnimatorObject
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Android
| 32-Bit | 64-Bit |
| :---: | :---: |
| False | True |
### Console
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
### iOS
| 32-Bit | 64-Bit |
| :---: | :---: |
| False | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Delegates
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Sub | AnimationComplete | (None) | Delegate function definition for when animation has completed. |
| Sub | AnimationProgress | (None) | Delegate function for reporting animation progress. |
| Sub | AtKeyframe | (None) | Delegate function for reporting when a keyframe has been encountered. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Function | AddKeyframe | As | Adds a new keyframe. |
| Function | AddKeyframe | As | Adds a new keyframe. |
| Function | AddKeyframe | As | Adds a new keyframe. |
| Function | AddOperation | As | Adds a new operation. |
| Sub | Constructor | (None) | Creates a new instance of the class. |
| Sub | Destructor | (None) | |
| Function | Move | As | Performs a move operation, shifting Left and Top. |
| Sub | NextKeyframe | (None) | Skip all operations until the next keyframe is reached. |
| Function | OnComplete | As | Assigns a delegate to be called when the animation queue is empty. |
| Function | OnKeyframe | As | Assigns a delegate to be called when a keyframe is encountered. |
| Function | OnProgress | As | Assigns a delegate to report progress of the animation operations. |
| Function | Play | As | Begin animation. |
| Function | Resize | As | Resize the target's width and height. |
| Function | Shake | As | Shake the target by rapidly modified its Left position. |
| Function | Stop | As | Stop all animation. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| Private | As | Nil | |
| State | GraffitiAnimator.States | Nil | The current running state of the animator. |
| Target | DesktopUIControl | Nil | The UI element to be animated. |