Protected
_nativeStatic
androidStatic
iosGets/Sets the loopCount of gifImage. This property is readonly on iOS.
3.2.0
Gets/Sets the loopCount of gifImage. This property is readonly on iOS.
3.2.0
Gets/Sets the frameCount of gifImage.
3.2.0
Gets/Sets the posterImage of gifImage.
3.2.0
Protected
preProtected
addProtected
addIOSPropsStatic
createCreates an gifImage object from given a blob.
createFromBlob
UI.GifImage
3.2.0
Contains gif datas.
Static
createCreates an GifImage instance from given file path. GifImage's file should not be in images folder. You can use assets folder.
import GifImage from '@smartface/native/ui/gifimage';
const myGifImage = GifImage.createFromFile("assets://smartface.gif");
createFromFile
An GifImage instance.
3.2.0
GifImage file path
Optional
width: numberOptional
height: numberReturns a Blob instance.
3.2.0
Protected
createOptional
params: Partial<IGifImage>Generated using TypeDoc
Since
3.2.0
GifImage is used to store the gif data read from the filesystem. It can be set to UI objects' properties (e.g. UI.GifImageView.gifImage). GifImage's file should not be in images folder. You can use assets folder.
Example