Amazon.CognitoSync.SyncManager.Dataset.FireSyncSuccessEvent C# (CSharp) Method

FireSyncSuccessEvent() protected method

Fires a Sync Success Event
protected FireSyncSuccessEvent ( List records, AsyncOptions options ) : void
records List List of records after successful sync
options AsyncOptions AsyncOptions object that controls whether
return void
        protected void FireSyncSuccessEvent(List<Record> records, AsyncOptions options)
        {
            if (options.ExecuteCallbackOnMainThread)
            {
                // Enqueue the callback so that the Unity main thread dispatcher 
                // can invoke the callback on the main thread.
                UnityRequestQueue.Instance.ExecuteOnMainThread(() =>
                {
                    FireSyncSuccessEvent(records);
                });
            }
            else
            {
                FireSyncSuccessEvent(records);
            }
        }