FrakConfig
Ce contenu n’est pas encore disponible dans votre langue.
class FrakConfig
Everything the SDK needs to start, supplied once at id.frak.sdk.Frak.initialize. Never validated at construction; an unusable config surfaces later as FrakError.MerchantResolutionFailed.
| Name | Summary |
|---|---|
| Builder | class BuilderBuilder() exists alongside Builder(merchantId) because merchantId is optional. The empty one is primary: a shared constructor(String?) would erase to the same JVM descriptor as constructor(String). |
Properties
Section titled “Properties”| Name | Summary |
|---|---|
| deepLink | val deepLink: DeepLinkHandling |
| env | val env: FrakEnvironment Merchants never set this; exists for Frak’s own dev/local builds. |
| logLevel | val logLevel: FrakLogLevel |
| logSink | val logSink: FrakLogSink? |
| merchantId | val merchantId: String? Optional; when null, merchant is resolved from packageId instead. merchantId wins if both set. |
| metadata | val metadata: FrakMetadata |
| packageId | val packageId: String? Null reads context.packageName at id.frak.sdk.Frak.initialize. bundleId on iOS. |
| trackingEnabled | val trackingEnabled: Boolean Hard floor for tracking that id.frak.sdk.FrakClient.setTrackingEnabled cannot lift at runtime. false also stops sharing, but config and reward resolution still run. |