Module |
|
Header |
/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineGroupsInterface.h |
Include |
#include "Interfaces/OnlineGroupsInterface.h" |
void TransferGroup
(
const FUniqueNetId & ContextUserId,
const FUniqueNetId & GroupId,
const FUniqueNetId & NewOwnerId,
const FOnGroupsRequestCompleted & OnCompleted
)
Promote an existing Admin to be the new Owner and simultaneously demotes the context user to Admin. Fails if the new owner is not currently an Admin of the group. Also fails if the new owner cannot own the group (due to owning too many other groups, as determined by the namespace config, perhaps).
Parameter |
Description |
---|---|
ContextUserId |
The ID of the user whose credentials are being used to make this call |
GroupId |
The group's globally unique ID |
UserId |
The user who should become the new group owner. This user must already be an Admin or the call fails. |
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. |