game / pragma.inventory / InventoryService / syncEntitlementsOperatorV1 /

syncEntitlementsOperatorV1 #

suspend fun syncEntitlementsOperatorV1(session: OperatorSession, request: InventoryRpc.SyncEntitlementsOperatorV1Request): InventoryRpc.SyncEntitlementsOperatorV1Response

Syncs all available entitlements from all configured Entitlement Provider Plugins except those that currently require an authCode.

Requirements

  • Configure all wanted EntitlementProviderPlugins. Pragma supported providers: Epic, Steam.
  • Configure corresponding entitlement provider’s AccountService.IdentityProviderPlugin. Example: EpicIdentityProviderPlugin.
  • Add and apply InventoryContent.ProviderEntitlementMappings content catalog.
  • For instanced item grants, implement and configure the InstancedItemPlugin.newInstanced.

Plugins

  • EntitlementProviderPlugin.fetchPlayerEntitlements
  • EntitlementProviderPlugin.onEntitlementsFulfilled
  • InstancedItemPlugin.newInstanced for InventoryCommon.InstancedItemServerGrants configured in InventoryContent.ProviderEntitlementMappings.
  • StackableItemPlugin.onUpdate