GifEncoder::setRepeat()
Browser availability: desktop-only.
The encoder behind the desktop's GifRecorder; recording is desktop-only.
Sets the number of times the set of GIF frames should be played. Default is 1; 0 means play indefinitely. Must be invoked before the first image is added.
Syntax
Java
.setRepeat(iter)
Parameters
| Name | Data Type | Description |
|---|---|---|
| iter | int | int number of iterations. |
Return
void