Menu
Lumberyard
Developer Guide (Version 1.11)

Building the Menus for the Player Account Cloud Gem

To build the menus, use the code for CloudGemPlayerAccountRequestBus and CloudGemPlayerAccountNotificationBusHandler in the dev\Gems\CloudGemPlayerAccount\Code\Include\CloudGemPlayerAccount\CloudGemPlayerAccountBus.h file. Keep in mind the following points:

  • Most of the EBus events are wrappers for Amazon Cognito user pool API operations. For the Amazon Cognito API reference, see Amazon Cognito Identity Provider.

     

  • To return the user name for the currently logged-in user, call the GetCurrentUser function, which has a corresponding OnGetCurrentUserComplete event. This function and EBus event are not part of the Amazon Cognito user pool API but are needed for most calls to the API.

     

  • The GetCurrentUser function also loads the returned user's credentials and caches them inside the gem's system component. As a result, subsequent calls to GetCurrentUser are faster.

     

  • The act of signing in also caches the user's credentials inside the gem's system component.

For information about Player Account Cloud Gem functions for creating accounts, password recovery, signing in and out, and account management, see Player Account Cloud Gem Implementation Details.