MCDelete

public class MCDelete<R: MCMirrorAbstraction>: Operation, MCDatabaseModifier, MCCloudErrorHandler

This wrapper class for CKModifyRecordsOperations deletes records associated with the recordables inserted, from the specified database.

  • If not cancelled, this method override will decorate and launch a CKModifyRecordsOperation in the specifified database.

    Declaration

    Swift

    public override func main()
  • This wrapper class for CKModifyRecordsOperations deletes records associated with the recordables inserted, from the specified database.

    Declaration

    Swift

    public init(_ array: [R.type]? = nil, of rec: R, from db: MCDatabase)

    Parameters

    array

    The recordables associated with the records that need to be removed from the specified database.

    rec

    The MCReceiver associated with MCDelete, that was itself storing the recordables to be deleted from the specified database.

    db

    The DatabaseType enumerating the CKDatabase containing the records that need to be deleted.