pub unsafe extern "C-unwind" fn CGAnimateImageDataWithBlock(
data: &CFData,
options: Option<&CFDictionary>,
block: CGImageSourceAnimationBlock,
) -> i32
Available on crate features
CGImageAnimation
and block2
and objc2-core-graphics
only.Expand description
Animate the sequence of images contained in data
. Currently supported image
formats are GIF and APNG. The options
dictionary may be used to request additional playback
options; see the list of keys above for more information. The block is called on the main queue
at time intervals specified by the delay time
of the image. The animation can be stopped by
setting the boolean parameter of the block to true.