/// <summary> /// The method sets your app login data, it must be called before using any other functionality offered by the SDK. /// </summary> /// <param name="key">Your app's key, can be found in the GetSocial developer console</param> /// <param name="onSuccess">Action called if operation was successful</param> /// <param name="onFailure">Action called if operation failed to complete. Optional.</param> public void Init(string key, Action onSuccess, Action onFailure = null) { Check.Argument.IsNotNull(onSuccess, "onSuccess", "Success callback cannot be null"); if (string.IsNullOrEmpty(key)) { key = GetSocialSettings.AppKey; } Log.D(string.Format("Init with key {0}", key)); getSocialImpl.Init(key, onSuccess, onFailure); }