Skip to main content
Initializes Encore on the device. Call it once, from the Unity main thread, before you identify the player or present anything. Pass an IEncorePurchaseController here if your offers sell a product: Configure is the only place to set one.

Signature

Parameters

EncoreOptions

Example

For reward placements only, Encore.Configure("pk_your_api_key_here") is enough.

Notes

  • Throws ArgumentException when apiKey is null or empty. It throws nothing else.
  • A failure inside the native layer is caught and logged at LogLevel.Warn. Encore stays unconfigured, IsConfigured stays false, and you can call Configure again.
  • IsConfigured is true once a Configure call succeeded. A later Configure is ignored and logged at LogLevel.Warn, so the purchase controller and the options can’t change after that.
  • IsClaimEnabled can be set before Configure, which sends it.
  • The package’s own messages go to the Unity log. Failures inside the native bridges go to the iOS subsystem com.encorekit.unity, the Android tag EncoreUnity, or the browser console on WebGL.