Beispiel #1
0
        public void InitCallback(NSDictionary data, NSError error)
        {
            if (callback == null)
            {
                return;
            }

            if (error == null)
            {
                callback.InitSessionComplete(BranchIOSUtils.ToDictionary(data));
            }
            else
            {
                BranchError err = new BranchError(error.Description, (int)error.Code);
                callback.SessionRequestError(err);
            }
        }
        public void SetIdentityCallback(NSDictionary data, NSError error)
        {
            if (callback == null)
            {
                return;
            }

            if (error == null)
            {
                callback.IdentitySet(BranchIOSUtils.ToDictionary(data));
            }
            else
            {
                BranchError err = new BranchError(error.Description, (int)error.Code);
                callback.IdentityRequestError(err);
            }
        }
Beispiel #3
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);
            }
        }