NexoraSdk class

Nexora SDK (v3.4.1) - Intelligence + Storage Edition.

A world-class, lightweight hardware toolkit for Flutter. Provides unified access to Camera, Audio, GPS, Bluetooth, Biometrics, Sensors, Health Diagnostics, and now device Storage.

Properties

audio AudioModule
Audio capture with real-time FFT spectrum analysis.
no setter
biometrics BiometricModule
Biometric authentication (Face ID / Fingerprint).
no setter
bluetooth BluetoothModule
Bluetooth Low Energy (BLE) scanning and GATT operations.
no setter
camera CameraModule
Vision AI camera module with face/barcode detection.
no setter
capabilities HardwareCapabilities
Runtime capability snapshot for the current platform.
no setter
config NexoraSdkConfig
Current global SDK configuration.
no setter
connectivity ConnectivityModule
Current network route and connectivity diagnostics.
no setter
device DeviceModule
Device identity, memory, display, CPU, and thermal diagnostics.
no setter
errors Stream<HardwareEvent>
Unified stream filtered to error events.
no setter
events Stream<HardwareEvent>
Unified stream of all SDK events.
no setter
featureMatrix Map<HardwareFeature, HardwareFeatureSupport>
Detailed support matrix for every SDK feature on this target.
no setter
feedback FeedbackModule
Haptic feedback and vibration control.
no setter
hashCode int
The hash code for this object.
no setterinherited
health HealthModule
Battery health, WiFi diagnostics, and telemetry logging.
no setter
location LocationModule
High-accuracy GPS with geofencing support.
no setter
native NativeModule
Clipboard, share sheet, and URL/deep-link helpers.
no setter
nfc NfcModule
NFC read/write support module.
no setter
permissions PermissionsModule
Permission status checks and settings helpers.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureStorage SecureStorageModule
AES-256 secure storage module.
no setter
sensors SensorModule
Motion sensor (accelerometer/gyroscope) module.
no setter
statusEvents Stream<HardwareEvent>
Unified stream filtered to status events.
no setter
storage StorageModule
Lightweight file I/O, storage info, and cache management.
no setter
utility UtilityModule
EcoMode power-saver and thermal protection controls.
no setter

Methods

addGeofence(String id, double lat, double lon, double radius) Future<bool>
Adds a circular Geofence for background monitoring.
attachLifecycleController({bool autoStopOnPause = true, bool stopCamera = true, bool stopAudio = true, bool stopBluetoothScan = true, bool stopLocation = true, bool stopSensors = true, bool stopLogging = true}) HardwareLifecycleController
Attaches an app lifecycle controller that can stop hardware on pause.
collectDiagnostics() Future<HardwareDiagnostics>
Collects a lightweight diagnostics snapshot for support screens/logging.
configure([NexoraSdkConfig config = NexoraSdkConfig.beginner]) Future<bool>
Applies global SDK defaults and forwards native flags to the host platform.
enterPictureInPicture() Future<bool>
Shrinks the current activity into a Picture-in-Picture window (Android 8.0+).
eventsFor(String module) Stream<HardwareEvent>
Unified stream filtered to one hardware module.
eventsOfType(String type) Stream<HardwareEvent>
Unified stream filtered to one event type.
getConnectedUsbDevices() Future<List<String>>
Gets a list of connected USB OTG devices.
getConnectivityInfo() Future<ConnectivityInfo>
Returns current connectivity information.
getDeviceInfo() Future<DeviceInfo>
Returns native device information such as model, memory, CPU, and thermal state.
getPermissionSnapshot() Future<HardwarePermissionSnapshot>
Returns current status for all core hardware permissions.
getPermissionStatus(HardwarePermission permission) Future<HardwarePermissionStatus>
Returns current status for one hardware permission without prompting.
getPlatformVersion() Future<String?>
Returns the current platform version string.
initialize({bool logCapabilities = false, NexoraSdkConfig config = NexoraSdkConfig.beginner}) Future<void>
Initializes the SDK by pre-warming capabilities/platform channel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppSettings() Future<bool>
Opens the host app settings page.
requestAudioPermission() Future<bool>
Requests only microphone/audio permission.
requestBluetoothPermission() Future<bool>
Requests only Bluetooth runtime permission where required by the OS.
requestCameraPermission() Future<bool>
Requests only camera permission.
requestLocationPermission() Future<bool>
Requests only foreground location permission.
requestMtu(String deviceId, int mtu) Future<bool>
Requests a specific MTU size for a BLE connection.
requestPermissionReport() Future<HardwarePermissionReport>
Requests each core runtime permission and returns detailed results.
requestPermissions() Future<bool>
Requests all necessary hardware permissions at once.
saveToGallery(String filePath) Future<String?>
Saves a file from the app's internal storage to the public gallery/downloads.
setVisionMode({bool face = false, bool barcode = false}) Future<bool>
Sets the native Vision AI mode.
startAudioWithAnalysis({bool streamBytes = false, int updateIntervalMs = 80}) Future<bool>
Convenience method for quick audio analysis startup.
startBlePeripheral(String uuid) Future<bool>
Starts broadcasting this device as a BLE Peripheral with the given uuid.
startConfigured({bool camera = false, bool audio = false, bool bluetoothScan = false, bool location = false, bool sensors = false}) Future<HardwareStartupResult>
Starts camera, audio, BLE, location, and sensor modules with configured defaults. Disable any module you do not need.
startForegroundService({required String title, required String content}) Future<bool>
Starts a persistent foreground service (Android) to keep background tasks alive.
startLogging(LogConfig config) Future<bool>
Starts background telemetry logging.
stopAll({bool camera = true, bool audio = true, bool bluetoothScan = true, bool location = true, bool sensors = true, bool logging = true}) Future<HardwareShutdownResult>
Stops all long-running hardware sessions started through the SDK.
stopBlePeripheral() Future<void>
Stops broadcasting Bluetooth LE.
stopForegroundService() Future<bool>
Stops the foreground service.
stopLogging() Future<bool>
Stops background telemetry logging.
subscribeToCharacteristic(String deviceId, String serviceId, String charId, {required bool enable}) Future<bool>
Subscribes to a BLE characteristic's notifications.
supportFor(HardwareFeature feature) HardwareFeatureSupport
Returns detailed implementation status for feature on this target.
supports(HardwareFeature feature) bool
Returns whether feature is expected to work on this Flutter target.
toString() String
A string representation of this object.
inherited
updateForegroundService(String title, String text) Future<bool>
Dynamically updates the Android Foreground Service notification UI.

Operators

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

Static Properties

instance NexoraSdk
API Documentation for NexoraSdk._.
final

Constants

version → const String
The current SDK version.