예제 #1
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);
        }
예제 #2
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);
        }