The '''UserLoginManager''' component is used to handle the user's login status.
The '''UserLoginManager''' component is used to handle the user's login status.
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|IsLoggedIn|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv0=true| Whether the current user is logged in or not.
|IsLoggedIn|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv0=true| Whether the current user is logged in or not.
|IsLoggingOut|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv1=true| Whether the local user is currently logging out or not.
|IsLoggingOut|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv1=true| Whether the local user is currently logging out or not.
|CurrentUsername|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv2=true| The username of the local user.
|CurrentUsername|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv2=true| The username of the local user.
|CurrentUserId|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv3=true| The user ID of the local user.
|CurrentUserId|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv3=true| The user ID of the local user.
Line 14:
Line 15:
|CurrentAccountColorOverride|{{RootFieldType|RawOutput`1|[[Type:Nullable`1|Nullable`1]]<[[Type:ColorX|ColorX]]>}}|TypeAdv5=true| The current user color override of the local user. Like nametag colors.
|CurrentAccountColorOverride|{{RootFieldType|RawOutput`1|[[Type:Nullable`1|Nullable`1]]<[[Type:ColorX|ColorX]]>}}|TypeAdv5=true| The current user color override of the local user. Like nametag colors.
|CurrentProfileIcon|Uri| The user icon of the local user.
|CurrentProfileIcon|Uri| The user icon of the local user.
|LoginLogoutButton|'''[[Component:Button|Button]]'''|TypeAdv7=true| Only works in the dash world. Is the button for logging in or out.
|LoginLogoutButton|'''[[Component:Button|Button]]'''|TypeAdv7=true| Only works in [[userspace]]. Is the button for logging in or out.
}}
}}
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|DoLoginLogout()|[[Type:ButtonEventHandler|ButtonEventHandler]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData>| Only works in the dash world. Starts the user logging in or logging out.
|DoLoginLogout:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|false| Triggers the login/logout process.
}}
}}
== Usage ==
== Usage ==
{{stub}}
{{stub}}
== Examples ==
== Examples ==
Used in the dash for the profile facet.
The UserProfile facet in [[Resonite Essentials]] uses UserLoginManager for getting profile information and logging out the user: