| 85 | } |
| 86 | |
| 87 | void 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 | |
| 108 | String ToString(const APP_LOCAL_DEVICE_ID& deviceId) |
| 109 | { |
nothing calls this directly
no test coverage detected