Navigation
API > API/Plugins > API/Plugins/OnlineServicesInterface > API/Plugins/OnlineServicesInterface/Online
References
| Module | OnlineServicesInterface |
| Header | /Engine/Plugins/Online/OnlineServices/Source/OnlineServicesInterface/Public/Online/Privileges.h |
| Include | #include "Online/Privileges.h" |
Syntax
namespace UE
{
namespace Online
{
enum EPrivilegeResults
&123;
NoFailures = 0,
RequiredPatchAvailable = 1 << 0,
RequiredSystemUpdate = 1 << 1,
AgeRestrictionFailure = 1 << 2,
AccountTypeFailure = 1 << 3,
UserNotFound = 1 << 4,
UserNotLoggedIn = 1 << 5,
ChatRestriction = 1 << 6,
UGCRestriction = 1 << 7,
GenericFailure = 1 << 8,
OnlinePlayRestricted = 1 << 9,
NetworkConnectionUnavailable = 1 << 10,
&125;
}
}
Values
| Name | Description |
|---|---|
| NoFailures | The user has the requested privilege |
| RequiredPatchAvailable | Patch required before the user can use the privilege |
| RequiredSystemUpdate | System update required before the user can use the privilege |
| AgeRestrictionFailure | Parental control failure usually |
| AccountTypeFailure | Premium account required |
| UserNotFound | Invalid user |
| UserNotLoggedIn | User must be logged in |
| ChatRestriction | User restricted from chat |
| UGCRestriction | User restricted from User Generated Content |
| GenericFailure | Platform failed for unknown reason and handles its own dialogs |
| OnlinePlayRestricted | Online play is restricted |
| NetworkConnectionUnavailable | Check failed because network is unavailable |
Remarks
Serializes data in network byte order form into a buffer
this isn't actually used, but it allows files to only include this instead of both for ease-of-use BASIC USAGE The Delegate Adapter can be used in place of an FOn{Name}Delegate::CreateLambda call: Identity->GetAuthToken(LocalUserNum, FOnAuthTokenGetComplete::CreateLambdathis{ ... }); -> Identity->GetAuthToken(LocalUserNum, *MakeDelegateAdapter(this, this{ ... });
The second instance, in addition to being slightly shorter and easier to remember, will be a unique ptr (can MoveTemp into the closure) and also will automatically do a weak ptr validity check on "this"
The Delegate Adapter can also be used to bind to TDelegates: TDelegate
This is useful when you need to capture something non-copyable, e.g. a TPromise, as TDelegate's need to be copyable.
The lifetime of the adapter is a shared ptr attached to the input delegate and will live as long as that delegate is bound.
BASIC USAGE The multicast adapter maintains the same functionality as a delegate adapter Identity->OnLoginCompleteDelegate.BindLambda(this{...}) -> MakeMulticastAdapter(this, Identity->OnLoginComplete, this{...});
When this adapter unbinds itself depends on the return type of the lambda bound to it:
- void - the adapter will unbind itself after a single execution
- bool - the adapter will unbind itself when the lambda returns true, and will stay bound when it returns false.
The lifetime of the adapter is a shared ptr attached to the input delegate and will live as long as that delegate is bound.