NexoraSdkConfig class

Global SDK configuration shared by Dart and native platform code.

Use this once during app startup to tune native behavior without passing the same options into every module call.

Constructors

NexoraSdkConfig({bool autoRequestPermissions = true, bool logNativeCalls = false, bool ecoMode = false, UnsupportedFeaturePolicy unsupportedFeaturePolicy = UnsupportedFeaturePolicy.throwException, CameraOptions camera = const CameraOptions(), AudioOptions audio = const AudioOptions(), BluetoothScanOptions bluetooth = const BluetoothScanOptions(), LocationOptions location = const LocationOptions(), SensorOptions sensors = const SensorOptions(), HapticOptions haptics = const HapticOptions(), AndroidNativeOptions android = const AndroidNativeOptions(), IosNativeOptions ios = const IosNativeOptions(), Map<String, Object> nativeFlags = const <String, Object>{}})
Creates an SDK configuration with production-friendly defaults.
const
NexoraSdkConfig.fromMap(Map map)
Creates a configuration from a map.
factory

Properties

android AndroidNativeOptions
Android-specific native customization.
final
audio AudioOptions
Default audio options used by configured startup helpers.
final
autoRequestPermissions bool
Whether module helpers should request permissions before native calls.
final
bluetooth BluetoothScanOptions
Default BLE scan options.
final
camera CameraOptions
Default camera options used by configured startup helpers.
final
ecoMode bool
Whether the SDK should run in energy-saving/eco mode by default.
final
haptics HapticOptions
Default haptic options.
final
hashCode int
The hash code for this object.
no setterinherited
ios IosNativeOptions
iOS-specific native customization.
final
location LocationOptions
Default location options.
final
logNativeCalls bool
Whether native implementations should emit lightweight diagnostic logs.
final
nativeFlags Map<String, Object>
Platform-specific feature switches forwarded to native code.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensors SensorOptions
Default sensor options.
final
unsupportedFeaturePolicy UnsupportedFeaturePolicy
The fallback strategy for unsupported platform features.
final

Methods

copyWith({bool? autoRequestPermissions, bool? logNativeCalls, bool? ecoMode, UnsupportedFeaturePolicy? unsupportedFeaturePolicy, CameraOptions? camera, AudioOptions? audio, BluetoothScanOptions? bluetooth, LocationOptions? location, SensorOptions? sensors, HapticOptions? haptics, AndroidNativeOptions? android, IosNativeOptions? ios, Map<String, Object>? nativeFlags}) NexoraSdkConfig
Returns a copy with selected values changed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts this configuration to a platform-channel friendly map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

advanced → const NexoraSdkConfig
Quieter defaults for apps that request permissions with their own flow.
beginner → const NexoraSdkConfig
Beginner-friendly defaults that request permissions automatically.