CGAnimateImageAtURLWithBlock

Function CGAnimateImageAtURLWithBlock 

Source
pub unsafe extern "C-unwind" fn CGAnimateImageAtURLWithBlock(
    url: &CFURL,
    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 the file at url. 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.

ยงSafety

  • options generics must be of the correct type.
  • block must be a valid pointer.