Media

@objc
public class Media : NSObject

This class represents a media in Storyly Moments

  • Media as an image initialization

    Declaration

    Swift

    @objc
    public init(image: UIImage)

    Parameters

    image

    UIImage of image

  • Media as a video initialization

    Declaration

    Swift

    @objc
    public init(videoUrl: URL, duration: VideoStoryDuration, thumbnail: UIImage?)

    Parameters

    videoUrl

    Media URL of video

  • Undocumented

    Declaration

    Swift

    @objc
    public init(videoUrl: URL, thumbnail: UIImage?)