chat_user::set_custom_user_context
Sets the app’s optional, private, custom pointer-sized context value for this user.Syntax
Parameters
customUserContext _In_opt_Type: void* An arbitrary, pointer-sized value to store for the
chat_user object.
Return value
Type: void None.Remarks
This method sets the app’s optional, private, custom pointer-sized context value for this chat_user object. The custom user context is typically used as a “shortcut” that simplifies accessing local, app-specific memory associated with the user without requiring a mapping lookup. Use the chat_user::custom_user_context method to retrieve the custom user context for achat_user object.
The custom user context is treated as opaque by the Game Chat 2 library, and is only valid on the local device; it is not transmitted over the network.
Requirements
Header: GameChat2.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
Intro to Game Chat 2chat_user
