Ejemplo n.º 1
0
        public override void Logout(IBranchIdentityInterface callback = null)
        {
            BranchIdentityListener obj = new BranchIdentityListener(callback);

            callbacksList.Add(obj as Object);

            NativeBranch.Logout(obj);
        }
Ejemplo n.º 2
0
        public override void SetIdentity(String user, IBranchIdentityInterface callback)
        {
            BranchIdentityListener obj = new BranchIdentityListener(callback);

            callbacksList.Add(obj as Object);

            NativeBranch.SetIdentity(user, obj);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Set the user's identity to an ID used by your system, so that it is identifiable by you elsewhere.
 /// If you call setIdentity, this device will have that identity associated with this user until `logout` is called.
 /// This includes persisting through uninstalls, as we track device id.
 /// </summary>
 /// <param name="user">The ID Branch should use to identify this user.</param>
 /// <param name="callback">The callback that is called once the request has completed.</param>
 abstract public void SetIdentity(String user, IBranchIdentityInterface callback);
Ejemplo n.º 4
0
 /// <summary>
 /// Clear all of the current user's session items.
 /// </summary>
 /// <param name="callback">The callback that is called once the request has completed.</param>
 abstract public void Logout(IBranchIdentityInterface callback = null);
 public BranchIdentityListener(IBranchIdentityInterface callback)
 {
     this.callback = callback;
 }