MCUpload

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

This wrapper class for CKModifyRecordsOperation saves records for the injected recordables in 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 CKModifyRecordsOperation saves records for the injected recordables in the specified database.

    Declaration

    Swift

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

    Parameters

    recs

    An array of the MCRecordables associated with the records that need to be uploaded to the specified database.

    rec

    The MCReceiver from which records are being derived and uploaded.

    db

    An enumeration of the CKDatabase records are to be uploaded to.