Studio

gif(...)

gif(opts? : SocialOptions, callback? : () => void) : void;

gif(opts? : string, callback? : () => void) : void;

Triggers the device to take a 90 frame gif. While this function returns instantly, the gif will not start being taken until the next frame is rendered to the screen.

Parameters

Parameter Type Description
opts optional, string or SocialOptions If a string it will be used as the message to pre-fill in any share dialog presented to the user, overriding any value set with the gifMessage(val) function. If a SocialOptions, message will override any value set with the gifMessage(val) function. Note that some share methods, such as Facebook, choose to ignore this message and present an empty dialog to the user.
callback optional, function The function will be called once the gif has finished being taken. Use to restore any UI that was hidden for the gif taking process.
Open in new window