public void OnInitFinished(IO.Branch.Indexing.BranchUniversalObject buo,
                                   IO.Branch.Referral.Util.LinkProperties blp,
                                   IO.Branch.Referral.BranchError error)
        {
            if (callback == null)
            {
                return;
            }

            if (error == null)
            {
                callback.InitSessionComplete(new BranchUniversalObject(BranchAndroidUtils.ToDictionary(buo)),
                                             new BranchLinkProperties(BranchAndroidUtils.ToDictionary(blp)));
            }
            else
            {
                BranchError err = new BranchError(error.Message, error.ErrorCode);
                callback.SessionRequestError(err);
            }
        }
Example #2
0
        public void InitCallback(IOSNativeBranch.BranchUniversalObject buo,
                                 IOSNativeBranch.BranchLinkProperties blp,
                                 NSError error)
        {
            if (callback == null)
            {
                return;
            }

            if (error == null)
            {
                callback.InitSessionComplete(new BranchUniversalObject(BranchIOSUtils.ToDictionary(buo)),
                                             new BranchLinkProperties(BranchIOSUtils.ToDictionary(blp)));
            }
            else
            {
                BranchError err = new BranchError(error.Description, (int)error.Code);
                callback.SessionRequestError(err);
            }
        }