HUBContentOperationContext

@protocol HUBContentOperationContext <NSObject>

Protocol defining the public API of a content operation context

This API is currently only used with HUBBlockContentOperation. For more information about the properties that are part of this API, refer to HUBContentOperation, or to the Content programming guide.

  • The URI of the view that the content operation is being used in

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSURL *_Nonnull viewURI;
  • An object containing information about the feature that the operation is being used in

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) id<HUBFeatureInfo> _Nonnull featureInfo;
  • The current connectivity state, as resolved by HUBConnectivityStateResolver

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) HUBConnectivityState connectivityState;
  • The builder that can be used to add, change or remove content to/from the view

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        id<HUBViewModelBuilder> _Nonnull viewModelBuilder;
  • Any error encountered by a previous content operation in the view’s content loading chain

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSError *previousError;