game / pragma.inventory / InventoryService / syncEntitlementsPartnerV1 /

syncEntitlementsPartnerV1 #

suspend fun syncEntitlementsPartnerV1(session: PartnerSession, request: InventoryRpc.SyncEntitlementsPartnerV1Request): InventoryRpc.SyncEntitlementsPartnerV1Response

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

PragmaResultErrors

  • PragmaError.AccountService_NotFound when social identity not found