partial void ViewLatestReferringParams(UIButton sender) { logString = BranchIOS.GetInstance().GetLastReferringBranchUniversalObject().ToJsonString() + "\n\n"; logString += BranchIOS.GetInstance().GetLastReferringBranchLinkProperties().ToJsonString(); PerformSegue("LogPush", this); }
partial void SimulateContentAccess(UIButton sender) { if (universalObject != null) { BranchIOS.GetInstance().RegisterView(universalObject); } }
partial void ShareLink(UIButton sender) { try { if (universalObject == null) { universalObject = new BranchUniversalObject(); universalObject.canonicalIdentifier = "id12345"; universalObject.title = "id12345 title"; universalObject.contentDescription = "My awesome piece of content!"; universalObject.imageUrl = "https://s3-us-west-1.amazonaws.com/branchhost/mosaic_og.png"; universalObject.metadata.Add("foo", "bar"); } if (linkProperties == null) { linkProperties = new BranchLinkProperties(); linkProperties.tags.Add("tag1"); linkProperties.tags.Add("tag2"); linkProperties.feature = "invite"; linkProperties.channel = "Twitter"; linkProperties.stage = "2"; linkProperties.controlParams.Add("$desktop_url", "http://example.com"); } BranchIOS.GetInstance().ShareLink(this, universalObject, linkProperties, "hello there with short url"); } catch (Exception e) { LogMessage(e.ToString()); } }
partial void RegisterForSpotlight(UIButton sender) { if (universalObject != null) { universalObject.metadata.Add("deeplink_text", "This link was generated for Spotlight registration"); BranchIOS.GetInstance().ListOnSpotlight(universalObject); } }
partial void SendComplexEvent(UIButton sender) { Dictionary <string, object> parameters = new Dictionary <string, object>(); parameters.Add("name", "Alex"); parameters.Add("boolean", true); parameters.Add("int", 1); parameters.Add("double", 0.13415512301); BranchIOS.GetInstance().UserCompletedAction("buy", parameters); RefreshRewards(); }
private void RefreshRewards() { lblRewardPoints.Text = "Reward Points = " + "updating..."; BranchIOS.GetInstance().LoadRewards(this); }
public void RewardsRedeemed() { lblRewardPoints.Text = "Reward Points = " + BranchIOS.GetInstance().GetCredits().ToString(); LogMessage("Branch.loadRewards changed: " + BranchIOS.GetInstance().GetCredits().ToString()); }
partial void ShowRewardHistory(UIButton sender) { BranchIOS.GetInstance().GetCreditHistory(this); }
partial void SimulateLogout(UIButton sender) { BranchIOS.GetInstance().Logout(this); }
partial void SendBuyEvent(UIButton sender) { BranchIOS.GetInstance().UserCompletedAction("buy"); RefreshRewards(); }
partial void SetUserID(UIButton sender) { BranchIOS.GetInstance().SetIdentity("test_user_10", this); }
partial void RedeemPoints(UIButton sender) { BranchIOS.GetInstance().RedeemRewards(this, 5); }