Enumerations

The following enumerations are available globally.

  • Some default values that the SDK uses.

    See more

    Declaration

    Swift

    public enum Host
  • A logger for outputting status messages to the console from Contentful SDK.

    See more

    Declaration

    Swift

    public enum ContentfulLogger
  • Endpoints that are available for the Content Delivery and Preview APIs.

    See more

    Declaration

    Swift

    public enum Endpoint : String
  • Possible errors being thrown by the SDK

    See more

    Declaration

    Swift

    public enum SDKError : Error, CustomDebugStringConvertible
  • Errors thrown for queries which have invalid construction.

    See more

    Declaration

    Swift

    public enum QueryError : Error, CustomDebugStringConvertible
  • The possible Field types in a Contentful content type.

    See more

    Declaration

    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 more

    Declaration

    Swift

    public enum ImageOption : Equatable, Hashable
  • Quality options for JPG images to be used when specifying .jpg as the desired image format. Example usage

    let imageOptions = [.formatAs(.jpg(withQuality: .asPercent(50)))]
    
    See more

    Declaration

    Swift

    public enum JPGQuality
  • Quality options for PNG images to be used when specifying .png as the desired image format. Example usage

    let imageOptions = [.formatAs(.png(bits: .standard))]
    
    See more

    Declaration

    Swift

    public enum PngBits
  • Use Format to specify the image file formats supported by Contentful’s Images API. Supported formats are jpg png and webp.

    See more

    Declaration

    Swift

    public enum Format : URLImageQueryExtendable
  • Use Focus to specify the focus area when resizing an image using either the Fit.thumb, Fit.fill and Fit.crop options. See Contentful’s Images API Reference Docs for more information.

    See more

    Declaration

    Swift

    public enum Focus : String
  • Fit

    The various options available within Fit specify different resizing behaviors for use in conjunction with the ImageOption.fit(for: Fit) option. By default, images are resized to fit inside the bounding box given by w andh while retaining their aspect ratio. Using the Fit options, you can change this behavior.

    See more

    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 more

    Declaration

    Swift

    public enum Link : Codable
  • The available URL parameter names for queries; used internally by the various Contentful.Query types. Use these static variables to avoid making typos when constructing queries. It is recommended to take advantage of Client “fetch” methods that take Query types instead of constructing query dictionaries on your own.

    See more

    Declaration

    Swift

    public enum QueryParameter
  • Declaration

    Swift

    public enum Bounds
  • All the possible MIME types that are supported by Contentful. \

    See more

    Declaration

    Swift

    public enum MimetypeGroup : String
  • A descriptor of the node’s type, which can be used to determine rendering heuristics.

    See more

    Declaration

    Swift

    public enum NodeType : String, Codable