xboxlive_show_profile_card_for_user


Description

With this function you can request that the XBox shows the profile card for the target user ID pointer. The function requires both the user ID pointer for the user that is requesting the information as well as the user ID pointer of the user to target and get the profile card of.

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_show_profile_card_for_user(requesting_user_id, target_user_id);

Argument Description
requesting_user_id The user ID (a pointer) of the requesting user
target_user_id The user ID (a pointer) of the user to get the profile card of


Returns:

N/A


Example:

if (gamepad(0, gp_start))
    {
    xboxlive_show_profile_card_for_user(user[0], user[1]);
    }

The above code checks for a gamepad button press and if one is detected it shows the profile card for the given user.