game-common / pragma.inventory / EntitlementProviderPlugin / fetchPlayerEntitlements /

fetchPlayerEntitlements #

abstract suspend fun fetchPlayerEntitlements(playerId: <ERROR CLASS>, providerInfos: List<EntitlementProviderInfo>): List<Entitlement>

Used by the Inventory Service to obtain a full view of the player’s entitlements in the third party provider. These results will be used to determine if any Pragma content should be granted or removed from the player’s inventory.

Note: Entitlements that are returned from this method will be passed back to onEntitlementsFulfilled if they have been marked for fulfillment internally in Pragma.