MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UserChangeEventCallback

Function UserChangeEventCallback

Source/Engine/Platform/GDK/GDKPlatform.cpp:87–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void CALLBACK UserChangeEventCallback(_In_opt_ void* context, _In_ XUserLocalId userLocalId, _In_ XUserChangeEvent event)
88{
89 LOG(Info, "User event (userLocalId: {0}, event: {1})", userLocalId.value, (int32)event);
90
91 auto user = Platform::FindUser(userLocalId);
92 switch (event)
93 {
94 case XUserChangeEvent::SignedInAgain:
95 break;
96 case XUserChangeEvent::SignedOut:
97 if (user)
98 {
99 // Logout
100 LOG(Info, "GDK user '{0}' logged out", user->GetName());
101 OnPlatformUserRemove(user);
102 }
103 break;
104 default: ;
105 }
106}
107
108String ToString(const APP_LOCAL_DEVICE_ID& deviceId)
109{

Callers

nothing calls this directly

Calls 2

OnPlatformUserRemoveFunction · 0.85
GetNameMethod · 0.45

Tested by

no test coverage detected