Creates a GIF Image View. Setting path to null will create a blank placeholder for your GIF image view.
Returns: A new GIF Image object or null if an error occured.
The following methods are avaiable on the GIF Image object:
Play the animated GIF. If stopped, starts at the current position.
Stop the animated GIF. The animation is paused/stopped at the current position.
Resets the animation to the starting position.
Seek to position (milliseconds). 1000 would seek to 1 second from starting position.
Returns: Boolean true/false, if the GIF is able to use the SeekTo method
Returns: Length of the animation in milliseconds.
Returns: The current position being played in milliseconds.
Set the speed for the animation. Can be a Integer between 0 and 5. 1 is normal. Setting this to .50 will play the animation half as slow as the normal speed. 4 would play the animation 3 times faster than normal. If you change the GIF with the SetImage method, this will need to be set again.
Returns: Human readable details about the image; frames, size, and any errors.
Returns: Boolean true/false, if the GIF is playing/animated
Changes the GIF to a different GIF image. Please remember, after changing the image, you must set the OnAnimationComplete for the new image.
Sets a callback function for the GIF after one complete display of the GIF animation. If the GIF loops, it will fire everytime the animation reaches completion before the GIF loops again. Remember, if you change the GIF image using the SetImage method, you must set this listener again.
Sets a callback for when the GIF image is touched. This event fires similar to DroidScripts SetOnTouchUp, only once per touch.
The following methods are common and also avaiable on the GIF Image object: