HUBBlockContentOperation

@interface HUBBlockContentOperation : NSObject <HUBContentOperation>

A concrete content operation type that is executed using a block

You can use this type to implement lightweight content operations, that don’t have the need to be asynchronous or support rescheduling. You simply give a block when initializing an instance of this class, and that block becomes the body of the content operation.

For more flexibility, implement your own content operation using HUBContentOperation.

  • Initialize an instance of this class

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBlock:
        (nonnull void (^)(id<HUBContentOperationContext> _Nonnull))block;

    Parameters

    block

    The block to use for the operation. The block will be copied by the operation and invoked each time the operation is performed. The contextual object passed to the block will contain all execution parameters that are passed to any HUBContentOperation.

  • Undocumented

    Declaration

    Objective-C

    @interface HUBBlockContentOperation : NSObject <HUBContentOperation>
  • Undocumented

    Declaration

    Objective-C

    @interface HUBBlockContentOperation : NSObject <HUBContentOperation>
  • Undocumented

    Declaration

    Objective-C

    @interface HUBBlockContentOperation : NSObject <HUBContentOperation>