Media
public class Media: NSObject
Media is object for photo and video
-
caption
Declaration
Swift
public var caption = ""
-
emptyImage
Declaration
Swift
public var emptyImage = true
-
isVideo
Declaration
Swift
public var isVideo = false
-
underlyingImage
Declaration
Swift
public var underlyingImage: UIImage?
-
init
Declaration
Swift
public override init()
-
init with image
Declaration
Swift
public convenience init(image: UIImage)
-
init with image and caption
Declaration
Swift
public convenience init(image: UIImage, caption: String)
-
init with image url and caption
Declaration
Swift
public convenience init(url: URL, caption: String)
-
init with image url
Declaration
Swift
public convenience init(url: URL)
-
init with PHAsset and targetSize
Declaration
Swift
public convenience init(asset: PHAsset, targetSize: CGSize)
-
init with video URL
Declaration
Swift
public convenience init(videoURL: URL)
-
Release if we can get it again from path or url
Declaration
Swift
public func unloadUnderlyingImage()
-
Cancel loading
Declaration
Swift
public func cancelAnyLoading()