Classes

The following classes are available globally.

  • Protocol for resources inside Contentful

    See more

    Declaration

    Swift

    public class Resource: ImmutableMappable
  • LocalizableResource

    Base class for any Resource that has the capability of carrying information for multiple locales. If more than one locale is fetched using either /sync endpoint, or specifying the wildcard value for the locale paramater (i.e [locale: *]) during a fetch, the SDK will cache returned values for all locales. This class gives an interface to specify which locale should be used when fetching data from Resource instances that are in memory.

    See more

    Declaration

    Swift

    public class LocalizableResource: Resource
  • A Locale represents possible translations for Entry Fields

    See more

    Declaration

    Swift

    public class Locale: ImmutableMappable
  • The LocalizationContext contains meta information about a Space about locales including information about which locale is the default, and what the fallback locale chain is.

    This contextual information is necessary to intiialize Entry and Asset instances properly so that the correct data is displayed for the currently selected locale. For instance, if a particular field for an Entry does not have data for the currently selected locale, the SDK will walk the fallback chain for this field until a non-null value is found, or full chain has been walked.

    Declaration

    Swift

    public class LocalizationContext: MapContext
  • Information regarding an error received from Contentful

    See more

    Declaration

    Swift

    public class ContentfulError: Mappable, Error
  • For requests that do hit the Contentful Delivery API enforces rate limits of 78 requests per second and 280800 requests per hour by default. Higher rate limits may apply depending on your current plan.

    See more

    Declaration

    Swift

    public final class RateLimitError: ContentfulError