Skip to content

rc_client_get_user_info

Jamiras edited this page May 30, 2023 · 1 revision

Gets information about the logged in user.

Syntax

const rc_client_user_t* rc_client_get_user_info(
    const rc_client_t* client
);

Parameters

client

The rc_client_t managing the logged in user.

Return value

Pointer to a rc_client_user_t object containing information about the logged in user, or NULL if no user is logged in.


rc_client_user_t

typedef struct rc_client_user_t {
  const char* display_name;
  const char* username;
  const char* token;
  uint32_t score;
  uint32_t score_softcore;
  uint32_t num_unread_messages;
} rc_client_user_t;

display_name

The name to display whenever the user is referenced in a popup or menu.

username

The username used to log the user in. May be case-corrected from the username provided to the login function.

token

A token that can be used to log the user in again in the future without requiring their password be stored.

score

The number of points that the user has earned.

score_softcore

The number of softcore points that the user has earned.

num_unread_messages

The number of unread messages that are waiting for the user on the server.

Remarks

Minimum version: 11.0.0

See also

rc_client_begin_login_with_password

rc_client_begin_login_with_token

rc_client_user_get_image_url

rcheevos

rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime

rhash

rapi

common

user

runtime

info

Clone this wiki locally