game / pragma.inventory / InventoryService / syncEntitlementsV1 /

syncEntitlementsV1 #

suspend fun syncEntitlementsV1(session: PlayerSession, request: InventoryRpc.SyncEntitlementsV1Request): InventoryRpc.SyncEntitlementsV1Response

Syncs all available entitlements from all configured Entitlement Provider Plugins.

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

PragmaResultErrors

  • PragmaError.AccountService_NotFound when social identity not found