partial void InitializeCometChat_TouchUpInside(UIButton sender) { cometchat = new CometChat(); readyUIFile = new readyUIFIle(); User user = Auth.DefaultInstance.CurrentUser; Database database = Database.DefaultInstance; CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) => { }; cometchat.InitializeCometChat(siteurl, licenseKey, apiKey, isCometOnDemand, (dict) => InitSuccess(dict), error => InitFail(error)); }
public void initializeCometChat(string SiteUrl, string LicenseKey, string ApiKey, bool isCometOnDemand, CometChatFormCallback callback) { System.Console.WriteLine("initializeCometChat CometChatImplementation"); cometchat = new CometChat(); readyUI = new readyUIFIle(); User user = Auth.DefaultInstance.CurrentUser; Database database = Database.DefaultInstance; CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) => { }; cometchat.InitializeCometChat(SiteUrl, LicenseKey, ApiKey, isCometOnDemand, (dictionary) => { if (dictionary != null) { callback.SuccessCallback(dictionary.ToString()); } }, (error) => { if (error != null) { callback.FailCallback(error.ToString()); } }); }
public void initializeCometChat(string SiteUrl, string LicenseKey, string ApiKey, bool isCometOnDemand, CometChatFormCallback callback) { cometchat = new CometChat(); readyUI = new readyUIFIle(); User user = Auth.DefaultInstance.CurrentUser; Database database = Database.DefaultInstance; CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) => { }; cometchat.InitializeCometChat(SiteUrl, LicenseKey, ApiKey, isCometOnDemand, (dict) => { if (dict != null && callback != null) { callback.SuccessCallback(dict.ToString()); } }, (err) => { if (err != null && callback != null) { callback.SuccessCallback(err.ToString()); } }); }