AssetPersistable
public protocol AssetPersistable : AssetProtocol, ContentSysPersistable
Conform to AssetPersistable protocol to enable mapping of your Contentful media Assets to
your NSManagedObject subclass.
-
The title of the Asset.
Declaration
Swift
var title: String? { get set } -
The description of the asset. Named
assetDescriptionto avoid clashing withdescriptionproperty that all NSObject’s have.Declaration
Swift
var assetDescription: String? { get set } -
URL of the Asset.
Declaration
Swift
var urlString: String? { get set } -
The name of the underlying binary media file.
Declaration
Swift
var fileName: String? { get set } -
The type of the underlying binary media file: e.g.
image/pngDeclaration
Swift
var fileType: String? { get set } -
The byte size of the underlying binary media file.
Declaration
Swift
var size: NSNumber? { get set } -
If the binary media file is an image, this property describes the images width in pixels.
Declaration
Swift
var width: NSNumber? { get set } -
If the binary media file is an image, this property describes the images height in pixels.
Declaration
Swift
var height: NSNumber? { get set }
View on GitHub
AssetPersistable Protocol Reference