Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/IOnlineGroups
Description
Create a new group using the specified GroupInfo. FGroupsResult::GroupId can be used to identify the newly created group once the callback executes (FGroupsResult being a param to the callback).
| Name | CreateGroup |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineGroupsInterface.h |
| Include Path | #include "Interfaces/OnlineGroupsInterface.h" |
void CreateGroup
(
const FUniqueNetId & ContextUserId,
const FGroupDisplayInfo & GroupInfo,
const FOnGroupsRequestCompleted & OnCompleted
)
Parameters
| Name | Remarks |
|---|---|
| ContextUserId | The ID of the user whose credentials are being used to make this call |
| GroupInfo | The display info to use for the new group. Name, description, etc |
| OnCompleted | This callback is invoked after contacting the server. It is guaranteed to occur (regardless of success/fail) and will not be called before this function returns. |