game / pragma.inventory / InventoryService / syncEntitlementsServiceV1 /

syncEntitlementsServiceV1 #

suspend fun syncEntitlementsServiceV1(session: ServiceSession, request: InventoryRpc.SyncEntitlementsServiceV1Request): InventoryRpc.SyncEntitlementsServiceV1Response

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.ProviderEntitlement.
  • StackableItemPlugin.onUpdate for InventoryCommon.StackableItemGrants configured in InventoryContent.ProviderEntitlement

PragmaResultErrors

  • PragmaError.AccountService_NotFound when social identity not found