Configuration Options
GuardianOptions
| Field | Type | Default | Description |
|---|---|---|---|
environment | Environment | production | Target environment |
failurePolicy | FailurePolicy | fail | Error handling behavior |
logLevel | LogLevel | warn | Log verbosity |
collectLocation | boolean | false | GPS collection (requires permission) |
collectWifiInfo | boolean | false | WiFi details (requires permission) |
collectSimCardInfo | boolean | false | SIM/carrier info (requires permission) |
collectCameraInfo | boolean | false | Camera count/info (requires permission) |
Environment
| Value | Description |
|---|---|
production | Live traffic |
sandbox | Testing and development |
FailurePolicy
| Policy | Behavior |
|---|---|
fail (default) | Returns error: integrator decides |
allow | Returns allowed: true, riskLevel: unknown. Error is reported via delegate/listener. |