Module |
|
Header |
/Engine/Source/Runtime/Portal/Services/Public/Account/IPortalUser.h |
Include |
#include "Account/IPortalUser.h" |
TAsyncResult< FPortalUserIsEntitledToItemResult > IsEntitledToItem
(
const FString & ItemId,
EEntitlementCacheLevelRequest CacheLevel
)
Returns whether the use is entitled to the specified Item Id.
Behavior will vary based on the entitlement cache level specified and whether the user is signed-in or not, or if the user is signed-in but latest entitlements have yet to be retrieved. See documentation about the entitlement cache levels for details.
In the case where there is no cached entitlement data and the latest entitlements have yet to be retrieved, then false will be returned. The Portal will not wait for the entitlements to update before returning a response. This state can be detected when the RetrievedFromCacheLevel is None.
Parameter |
Description |
---|---|
ItemId |
The guid for the catalog item to check the entitled state for |
CacheLevel |
The level at which to allow referencing cached data |