Skip to content

ADAssetModel_MediaType

duzexu edited this page Jun 1, 2021 · 2 revisions

ADAssetModel.MediaType

Type of asset.

public enum MediaType: Equatable 

Inheritance

Equatable

Enumeration Cases

unknown

case unknown

image

case image

gif

case gif

livePhoto

case livePhoto

video

case video(duration: Int = 0, format: String = "")

Properties

isImage

Asset is image.

public var isImage: Bool 

duration

If asset is video, return video duration, else return 0.

public var duration: Int 

Operators

==

public static func == (lhs: Self, rhs: Self) -> Bool 
Types
Protocols
Global Typealiases
Operators
Extensions
Clone this wiki locally