Enumerations
The following enumerations are available globally.
-
Some default values that the SDK uses.
See moreDeclaration
Swift
public enum Host -
A logger for outputting status messages to the console from Contentful SDK.
See moreDeclaration
Swift
public enum ContentfulLogger -
Endpoints that are available for the Content Delivery and Preview APIs.
See moreDeclaration
Swift
public enum Endpoint : String -
Possible errors being thrown by the SDK
See moreDeclaration
Swift
public enum SDKError : Error, CustomDebugStringConvertible -
Errors thrown for queries which have invalid construction.
See moreDeclaration
Swift
public enum QueryError : Error, CustomDebugStringConvertible -
The possible Field types in a Contentful content type.
See moreDeclaration
Swift
public enum FieldType : String, Decodable -
An enum-based API for specifying retrieval and server-side manipulation of images referenced by Contentful assets. See Images API Reference
See moreDeclaration
Swift
public enum ImageOption : Equatable, Hashable -
Quality options for JPG images to be used when specifying
.jpgas the desired image format. Example usage
See morelet imageOptions = [.formatAs(.jpg(withQuality: .asPercent(50)))]Declaration
Swift
public enum JPGQuality -
Quality options for PNG images to be used when specifying
.pngas the desired image format. Example usage
See morelet imageOptions = [.formatAs(.png(bits: .standard))]Declaration
Swift
public enum PngBits -
Use
See moreFormatto specify the image file formats supported by Contentful’s Images API. Supported formats arejpgpngandwebp.Declaration
Swift
public enum Format : URLImageQueryExtendable -
Use
See moreFocusto specify the focus area when resizing an image using either theFit.thumb,Fit.fillandFit.cropoptions. See Contentful’s Images API Reference Docs for more information.Declaration
Swift
public enum Focus : String -
The various options available within Fit specify different resizing behaviors for use in conjunction with the
See moreImageOption.fit(for: Fit)option. By default, images are resized to fit inside the bounding box given byw andh while retaining their aspect ratio. Using theFitoptions, you can change this behavior.Declaration
Swift
public enum Fit : URLImageQueryExtendable -
A representation of Linked Resources that a field may point to in your content model. This stateful type safely highlights links that have been resolved to entries, resolved to assets, or remain unresolved.
See moreDeclaration
Swift
public enum Link : Codableextension Link: Hashable, Equatable -
The available URL parameter names for queries; used internally by the various
See moreContentful.Querytypes. Use these static variables to avoid making typos when constructing queries. It is recommended to take advantage ofClient“fetch” methods that takeQuerytypes instead of constructing query dictionaries on your own.Declaration
Swift
public enum QueryParameter -
Use bounding boxes or bounding circles to perform queries on location-enabled content. See: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/locations-in-a-bounding-object
See moreDeclaration
Swift
public enum Bounds -
All the possible MIME types that are supported by Contentful. \
See moreDeclaration
Swift
public enum MimetypeGroup : String -
A descriptor of the node’s type, which can be used to determine rendering heuristics.
See moreDeclaration
Swift
public enum NodeType : String, Codable
View on GitHub
Enumerations Reference