SdkConfiguration
The SDK configuration.
See
Properties
licenseKey
licenseKey:
string
The license key is linked to your application ID. For instructions on obtaining a license key, please contact support.
plugins?
optionalplugins:PluginConstructor[]
The plugins to use with the SDK.
Accepts constructor functions that extend the Plugin class.
logLevel?
optionallogLevel:LogLevel
The log level for internal logging. Default is LogLevel.Info.
maxNumberOfPlayers?
optionalmaxNumberOfPlayers:number
The maximum number of Player instances that can exist concurrently.
Attempting to create an additional player past this limit raises a ErrorCode.MaxNumberOfPlayersExceeded error.
This is a developer-targeted feature intended to help detect player leaks during development: if players are not being released properly (e.g. a component fails to call Player.destroy on unmount), the limit will be reached quickly and the resulting error makes the leak visible instead of silently accumulating native resources.
Default is 2.
androidSdkConfiguration?
optionalandroidSdkConfiguration:AndroidSdkConfiguration
Specific Android SDK configuration.