java.lang.Object | |
↳ | co.megacool.megacool.PreviewData |
The data needed to build a preview. This should only be used by non-native Android apps that
cannot use renderPreviewOfGif()
, and this interface should be considered
unstable until there is first-class support for custom engines.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getLastFrameDelayMs()
Get the last frame delay from the recording used to create the preview
| ||||||||||
PreviewFrame |
getNextFrame()
Get the next frame in the sequence
| ||||||||||
synchronized int |
getNumberOfFrames()
Get the number of frames to be shown in the preview.
| ||||||||||
int |
getPlaybackFrameRate()
Get the playback frame rate from the recording used to create the preview
| ||||||||||
void |
setRepeat(boolean repeat)
Enable/disable looping of the preview
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Get the last frame delay from the recording used to create the preview
Get the next frame in the sequence
Get the number of frames to be shown in the preview. Note that this might change during the preview being shown if the recording hasn't completed storing all of its frames to disk
Get the playback frame rate from the recording used to create the preview
Enable/disable looping of the preview
repeat | true to loop or false to play once and stop |
---|