Freigeben über


XUserState

Specifies the current state of the user.

Syntax

enum class XUserState  : uint32_t  
{  
    SignedIn = 0,  
    SigningOut = 1,  
    SignedOut = 2,  
}  

Constants

Constant Description
SignedIn The user is signed in.
SigningOut The user is signing out.
SignedOut The user is signed out.

Remarks

To get the state of a given user, call the XUserGetState function. The function accepts a pointer to an XUserState enumeration as an argument.

To monitor changes in the state of a user, subscribe to XUserChangeEvent by calling XUserRegisterForChangeEvent.

Requirements

Header: XUser.h

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XUser

XUserChangeEvent

XUserRegisterForChangeEvent