public override void Logout(IBranchIdentityInterface callback = null) { BranchIdentityListener obj = new BranchIdentityListener(callback); callbacksList.Add(obj as Object); NativeBranch.Logout(obj); }
public override void SetIdentity(String user, IBranchIdentityInterface callback) { BranchIdentityListener obj = new BranchIdentityListener(callback); callbacksList.Add(obj as Object); NativeBranch.SetIdentity(user, obj); }
/// <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);
/// <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; }