DKThumbnails
@objc(DKThumbnails)
public class DKThumbnails : NSObject, NSCoding
Represents the available thumbnails for a collection or item.
-
URL for a mini thumbnail image, preserving the content’s aspect ratio
Declaration
Swift
public var mini: URL?
-
URL for a small thumbnail image, preserving the content’s aspect ratio
Declaration
Swift
public var small: URL?
-
URL for a cropped thumbnail image, using a square aspect ratio
Declaration
Swift
public var cropped: URL?
-
URL for an uncropped thumbnail image, preserving the content’s aspect ratio
Declaration
Swift
public var uncropped: URL?
-
URL for a large thumbnail image, preserving the content’s aspect ratio
Declaration
Swift
public var large: URL?
-
For GIF animations, a URL for a cropped thumbnail animation using a square aspect ratio.
Declaration
Swift
public var croppedAnimated: URL?
-
For GIF animations, a URL for an uncropped thumbnail animation preserving the content’s aspect ratio
Declaration
Swift
public var uncroppedAnimated: URL?
-
Serializes a new instance from the provided network response and key-value representation. The representation is validated for the required parameters, then fills in optional parameters as necessary.
Declaration
Swift
public init?(response: HTTPURLResponse, representation: Any)
Parameters
response
A network response assocated with serialization
representation
A key-value object representing parameters and child objects.
-
Returns an object initialized from data in a given unarchiver.
Discussion: You typically return
self
frominit(coder:)
. If you have an advanced need that requires substituting a different object after decoding, you can do so inawakeAfter(using:)
.
Declaration
Swift
public required init(coder aDecoder: NSCoder)
Parameters
coder
An unarchiver object.
Return Value
self
, initialized using the data incoder
. -
Encodes the receiver using a given archiver.
Declaration
Swift
public func encode(with aCoder: NSCoder)
Parameters
encoder
An archiver object.