Ejemplo n.º 1
0
        public override void ShareLink(IBranchLinkShareInterface callback,
                                       BranchUniversalObject universalObject,
                                       BranchLinkProperties linkProperties,
                                       string message)
        {
            IOSNativeBranch.BranchUniversalObject buo = BranchIOSUtils.ToNativeUniversalObject(universalObject);
            IOSNativeBranch.BranchLinkProperties  blp = BranchIOSUtils.ToNativeLinkProperties(linkProperties);
            UIKit.UIWindow window = UIKit.UIApplication.SharedApplication.KeyWindow;

            buo.ShowShareSheetWithLinkProperties(blp, message, window.RootViewController, delegate(string url, bool isShared) {});
        }
Ejemplo n.º 2
0
        public override void GetShortURL(IBranchUrlInterface callback,
                                         BranchUniversalObject universalObject,
                                         BranchLinkProperties linkProperties)
        {
            BranchUrlListener obj = new BranchUrlListener(callback);

            callbacksList.Add(obj as Object);

            IOSNativeBranch.BranchUniversalObject buo = BranchIOSUtils.ToNativeUniversalObject(universalObject);
            IOSNativeBranch.BranchLinkProperties  blp = BranchIOSUtils.ToNativeLinkProperties(linkProperties);

            buo.GetShortUrlWithLinkProperties(blp, obj.GetShortUrlCallback);
        }
Ejemplo n.º 3
0
        public override void GetShortUrl(IBranchUrlInterface callback,
                                         Dictionary <String, dynamic> parameters = null,
                                         string channel            = "",
                                         string stage              = "",
                                         ICollection <String> tags = null,
                                         string feature            = "",
                                         int duration              = 0)
        {
            BranchUrlListener obj = new BranchUrlListener(callback);

            callbacksList.Add(obj as Object);

            NativeBranch.GetShortUrlWithParams(BranchIOSUtils.ToNSDictionary(parameters),
                                               BranchIOSUtils.ToNSObjectArray(tags), "", (nuint)duration, channel, feature, stage, obj.GetShortUrlCallback);
        }
Ejemplo n.º 4
0
        public override void GetShortUrl(IBranchUrlInterface callback,
                                         int type = Constants.URL_TYPE_UNLIMITED,
                                         Dictionary <String, dynamic> parameters = null,
                                         string channel            = "",
                                         string stage              = "",
                                         ICollection <String> tags = null,
                                         string feature            = "")
        {
            BranchUrlListener obj = new BranchUrlListener(callback);

            callbacksList.Add(obj as Object);

            NativeBranch.GetShortURLWithParams(BranchIOSUtils.ToNSDictionary(parameters),
                                               BranchIOSUtils.ToNSObjectArray(tags), channel, feature, stage,
                                               (IOSNativeBranch.BranchLinkType)type, obj.GetShortUrlCallback);
        }
Ejemplo n.º 5
0
 public override void ListOnSpotlight(BranchUniversalObject universalObject)
 {
     BranchIOSUtils.ToNativeUniversalObject(universalObject).ListOnSpotlight();
 }
Ejemplo n.º 6
0
 public override void RegisterView(BranchUniversalObject universalObject)
 {
     BranchIOSUtils.ToNativeUniversalObject(universalObject).RegisterView();
 }
Ejemplo n.º 7
0
 public override void UserCompletedAction(String action, Dictionary <string, object> metadata = null)
 {
     NativeBranch.UserCompletedAction(action, BranchIOSUtils.ToNSDictionary(metadata));
 }
Ejemplo n.º 8
0
 public override BranchLinkProperties GetFirstReferringBranchLinkProperties()
 {
     return(new BranchLinkProperties(BranchIOSUtils.ToDictionary(NativeBranch.FirstReferringBranchLinkProperties())));
 }
Ejemplo n.º 9
0
 public override BranchUniversalObject GetFirstReferringBranchUniversalObject()
 {
     return(new BranchUniversalObject(BranchIOSUtils.ToDictionary(NativeBranch.FirstReferringBranchUniversalObject())));
 }
Ejemplo n.º 10
0
 public override Dictionary <String, object> GetFirstReferringParams()
 {
     return(BranchIOSUtils.ToDictionary(NativeBranch.FirstReferringParams()));
 }
Ejemplo n.º 11
0
 public override void SendEvent(BranchEvent branchEvent)
 {
     BranchIOSUtils.SendEvent(branchEvent);
 }