HoloToolkit.Sharing.Session.IsJoined C# (CSharp) Method

IsJoined() public method

public IsJoined ( ) : bool
return bool
  public virtual bool IsJoined() {
    bool ret = SharingClientPINVOKE.Session_IsJoined(swigCPtr);
    return ret;
  }

Usage Example

        /// <summary>
        ///  Join the specified session.
        /// </summary>
        /// <param name="session">Session to join.</param>
        /// <returns>True if the session is being joined or is already joined.</returns>
        public bool JoinSession(Session session)
        {
            // TODO Should prevent joining multiple sessions at the same time
            if (session != null)
            {
                return(session.IsJoined() || session.Join());
            }

            return(false);
        }
All Usage Examples Of HoloToolkit.Sharing.Session::IsJoined