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) throwsParameters
decoderDecoderinstance -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderEncoderinstance -
Compares this object with given other object.
Declaration
Swift
public override func isEqual(_ object: Any?) -> BoolParameters
objectAnyinstanceReturn Value
trueif same otherwisefalse -
Serializes this object into data
Declaration
Swift
public func serialize() -> Data?Return Value
optioanal
Datainstance -
Deserializes and reconstructs the object
Declaration
Swift
public static func build(fromSerializedData data: Data?) -> Self?Parameters
dataDatainstanceReturn Value
Thumbnailif parameter is valid, otherwisenil
View on GitHub
Install in Dash