Typealiases

The following typealiases are available globally.

  • A tuple of data task, enabling the cancellation of http requests, and an Observable for the resulting items that were fetched from the Contentful Content Delivery API.

    Declaration

    Swift

    public typealias TaskObservable<T> = (task: URLSessionDataTask?, observable: Observable<Result<T>>)
  • The completion callback for an API request with a Result<T> containing the requested object of type T on success, or an error if the request was unsuccessful.

    Declaration

    Swift

    public typealias ResultsHandler<T> = (_ result: Result<T>) -> Void