Invoking the Sync Down Method with a Custom Target

Pass an instance of your custom SFSyncDownTarget class to the SFMobileSyncSyncManager sync down method:

Swift

Objective-C

Android:

Pass an instance of your custom SyncDownTarget class to the SyncManager sync down method:

 

  1. Create a target object with the following property settings:
    • Set type to "custom".
    • Set at least one of the following properties:
      iOS (if supported):

      Set iOSImpl to the name of your iOS custom class.

      Android (if supported):

      Set androidImpl to the package-qualified name of your Android custom class.

    The following example supports both iOS and Android:
  2. Pass this target to the hybrid sync down method: