Compartir a través de


XblMultiplayerActivityGetActivityAsync

Get the multiplayer activity for a set of users. You can query at most 30 users with each call.

Syntax

HRESULT XblMultiplayerActivityGetActivityAsync(  
         XblContextHandle xblContext,  
         const uint64_t* xuids,  
         size_t xuidsCount,  
         XAsyncBlock* async  
)  

Parameters

xblContext   _In_
Type: XblContextHandle

Xbox Live context for the local user.

xuids   _In_reads_(xuidsCount)
Type: uint64_t*

List of Xbox user IDs for whom to get multiplayer activity.

xuidsCount   _In_
Type: size_t

Size of the xuids array.

async   _In_
Type: XAsyncBlock*

The XAsyncBlock for this operation.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

To get the result, call XblMultiplayerActivityGetActivityResultSize and XblMultiplayerActivityGetActivityResult inside the XAsyncBlock callback or after the async operation is complete.

To see how this function is used, see "Getting activities" in the Activities section of Example code for Multiplayer Activity.

For more information about multiplayer activities, see Activities.

REST Call

Calls POST /titles/{titleId}/activities/query

Requirements

Header: multiplayer_activity_c.h

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

See also

multiplayer_activity_c