internal override void NativeCallback(string message) { if (message.StartsWith("InboxOnChanged")) { InboxChanged?.Invoke(); } else if (message.StartsWith("InboxForceContentUpdate:")) { bool success = message.EndsWith("1"); ForceContentUpdate?.Invoke(success); } else if (message.StartsWith("InboxDownloadMessages:")) { bool success = message.EndsWith("1"); OneTimeUpdate?.Invoke(success); OneTimeUpdate = null; } }
private void TriggerInboxSyncedWithStatus(bool status, OnForceContentUpdate completedHandler) { completedHandler?.Invoke(status); ForceContentUpdate?.Invoke(status); }