static void MobInviteAction(IAppInviteResult result) { if (result.RawResult.Contains("did_complete")) { act(); } }
public void TestSimpleAppInvite() { IAppInviteResult result = null; FB.Mobile.AppInvite(null, null, (r) => result = r); Assert.IsNotNull(result); }
void AppInviteCallback(IAppInviteResult result) { Debug.Log("_______IAppInviteResult: " + result.Cancelled); if (!result.Cancelled) { Events.ReFillEnergy(1); } }
private void OnInviteFriendCB(IAppInviteResult result) { bool isSuccess; string message; HandleResult(result, out isSuccess, out message); if (_onInviteFriendCB != null) { _onInviteFriendCB(isSuccess, message); } }
private void OnInvite(IAppInviteResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { Debug.Log("Share Link error " + result.Error); } else { Debug.Log(result.ToString()); } }
private void InviteCallback(IAppInviteResult result) { if (string.IsNullOrEmpty(result.Error)) { Debug.Log(result.Error); } else { Debug.Log("Successfully Invited"); } }
private void AppInviteCallback(IAppInviteResult result) { if (result.Cancelled || !String.IsNullOrEmpty(result.Error)) { Debug.Log("AppInvite Error: " + result.Error); } else { Debug.Log("AppInvite success!"); } }
void InviteCallback(IAppInviteResult result) { if (result.Cancelled) { Debug.Log("Invite cancelled."); } else if (!string.IsNullOrEmpty(result.Error)) { Debug.Log("Error in invite:" + result.Error); } else { Debug.Log("Invite was successful:" + result.RawResult); } }
void InviteCallBack(IAppInviteResult result) { if (result.Cancelled) { Debug.Log("Invite canceled"); } else if (!String.IsNullOrEmpty(result.Error)) { Debug.Log("Errors on invite!"); } else if (!String.IsNullOrEmpty(result.RawResult)) { Debug.Log("Success on invite!"); } }
private void InviteCallBack(IAppInviteResult result) { Debug.Log(result.RawResult); if (result.Cancelled) { Debug.Log("Invite is Cancelled"); } else if (!string.IsNullOrEmpty(result.Error)) { Debug.Log("Error on Invite"); } else if (!string.IsNullOrEmpty(result.RawResult)) { Debug.Log("Success On Invite"); } }
void AppInviteCallback(IAppInviteResult result) { if (result.Cancelled || !String.IsNullOrEmpty(result.Error)) { if (onAppInviteFail != null) { onAppInviteFail(); onAppInviteFail = null; } } else { if (onAppInviteComplete != null) { onAppInviteComplete(); onAppInviteComplete = null; } } }
private void OnAppInvite(IAppInviteResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { print("Invite error: " + result.Error); } else { print("Invite succeed"); if (!PlayerPrefs.HasKey("inviteCoinClaimed")) { txtStatus.text = "You received 10 coins for inviting!"; PlayerPrefs.SetInt("PlayerGold", PlayerPrefs.GetInt("PlayerGold") + 10); PlayerPrefs.SetInt("inviteCoinClaimed", 1); sfxCoins.Play(); } else { txtStatus.text = "Thank you for inviting your friends!"; } } }
private void AppInviteResult(IAppInviteResult result) { FB_AppInviteResult res = new FB_AppInviteResult(result.Cancelled, result.RawResult, result.Error, result.ResultDictionary); SPFacebook.Instance.AppInviteResultCallback(res); }
private void AppInviteCallback(IAppInviteResult result) { throw new NotImplementedException(); }
void HandleResult(IAppInviteResult Result) { Debug.Log(Result.RawResult); }
private void AppInviteCallback(IAppInviteResult result) { }