XblPresenceSetPresenceAsync

Sets presence info for the current user context.

Syntax

HRESULT XblPresenceSetPresenceAsync(  
         XblContextHandle xblContextHandle,  
         bool isUserActiveInTitle,  
         XblPresenceRichPresenceIds* richPresenceIds,  
         XAsyncBlock* async  
)  

Parameters

xblContextHandle   _In_
Type: XblContextHandle

Xbox live context for the local user.

isUserActiveInTitle   _In_
Type: bool

Indicates if the current user context is currently active or inactive in the title. The application can choose to set this based on an amount of inactivity.

richPresenceIds   _In_opt_
Type: XblPresenceRichPresenceIds*

Optional pointer to struct which controls the rich presence strings.

async   _In_
Type: XAsyncBlock*

The AsyncBlock for this operation.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Requirements

Header: presence_c.h

Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

presence_c