xboxlive_get_activating_user


Description

With this function you can retrieve the user ID pointer for the user that launched the game from the console.

NOTE: How you use this pointer will depend on what you want to do in the game, but you should not rely on it to be the currently playing User ID as the activating user can logout while the game is running.
IMPORTANT! This function is only valid when exporting using the UWP target for the Xbox One and it requires you to have checked the Enable XBox Live option in the UWP Game Options.


Syntax:

xboxlive_get_activating_user();


Returns:

Pointer


Example:

global.activUser = xboxlive_get_activating_user();

The above stores the activating user ID pointer in a global variable