SKYRemoveRelationsOperation

@interface SKYRemoveRelationsOperation : SKYOperation

Undocumented

  • Instantiates an instance of with a list of user to be related with current user.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithType:(nonnull NSString *)relationType
                           usersToRemove:(nonnull NSArray *)users;

    Swift

    init(type relationType: String, usersToRemove users: [Any])
  • Creates and returns an instance of with a list of user to be related with current user.

    Declaration

    Objective-C

    + (nonnull instancetype)operationWithType:(nonnull NSString *)relationType
                                usersToRemove:(nonnull NSArray *)users;
  • Type of the relation, default provide follow and friend.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *_Nonnull relationType;

    Swift

    var relationType: String { get set }
  • Sets or returns an array of users to be delete on the specified related.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSArray *_Nonnull usersToRemove;

    Swift

    var usersToRemove: [Any] { get set }
  • Sets or returns a block to be called when the save operation for individual record is completed. If an error occurred during the delete, the will be specified.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) void (^_Nullable)
        (NSString *_Nullable, NSError *_Nullable) perUserCompletionBlock;

    Swift

    var perUserCompletionBlock: ((String?, Error?) -> Void)? { get set }
  • Sets or returns a block to be called when the entire operation completes. If the entire operation results in an error, the will be specified.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) void (^_Nullable)
        (NSArray *_Nullable, NSError *_Nullable) removeRelationsCompletionBlock;

    Swift

    var removeRelationsCompletionBlock: (([Any]?, Error?) -> Void)? { get set }