Thumbnail
public final class Thumbnail: NSObject, Codable, Injectable
extension Thumbnail: Serializable
Represents a thumbnail information
-
The url of the thumbnail.
Declaration
Swift
public var url: String
-
The maximum size of the thumbnail.
Declaration
Swift
public private(set) var maxSize: CGSize = .zero
-
The real size of the thumbnail.
Declaration
Swift
public private(set) var realSize: CGSize = .zero
-
The file URL without the ekey.
Since
3.0.194Declaration
Swift
public private(set) var plainURL: String?
-
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throws
Parameters
decoder
Decoder
instance -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
Encoder
instance -
Compares this object with given other object.
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
Parameters
object
Any
instanceReturn Value
true
if same otherwisefalse
-
Serializes this object into data
Declaration
Swift
public func serialize() -> Data?
Return Value
optioanal
Data
instance -
Deserializes and reconstructs the object
Declaration
Swift
public static func build(fromSerializedData data: Data?) -> Self?
Parameters
data
Data
instanceReturn Value
Thumbnail
if parameter is valid, otherwisenil