Exemple #1
0
        partial void CreateBranchLink(UIButton sender)
        {
            try
            {
                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");

                linkProperties = new BranchLinkProperties();
                linkProperties.tags.Add("tag1");
                linkProperties.tags.Add("tag2");
                linkProperties.feature = "sharing";
                linkProperties.channel = "facebook";
                linkProperties.controlParams.Add("$desktop_url", "http://example.com");

                BranchIOS.getInstance().GetShortURL(this, universalObject, linkProperties);
            }
            catch (Exception e)
            {
                LogMessage(e.ToString());
            }
        }
 public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo)
 {
     BranchIOS.getInstance().HandlePushNotification(userInfo);
 }
 public override bool ContinueUserActivity(UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler)
 {
     return(BranchIOS.getInstance().ContinueUserActivity(userActivity));
 }
 public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation)
 {
     return(BranchIOS.getInstance().OpenUrl(url));
 }