← Back to Blog
DeviceBiometricSensorsHardwareTutorial
Device Hardware Features
Codular gives you access to all device hardware - no native code needed.
Biometric Authentication
Fingerprint or Face ID to secure your app.
- Drag BiometricAuth component
- Set prompt title & subtitle
- Connect onAuthSuccess to your secure flow
- Connect onAuthError to show error
- Use Authenticate flow node to trigger
Flashlight / Torch
Toggle the phone flashlight.
Flow: Event (Button.onPress) → Toggle Flashlight
Sensors
Example: Shake to Refresh
Accelerometer.onAccelerometerChange → If/Else (magnitude > 15) → API Call (refresh data)
Screen Brightness
Control brightness programmatically.
Flow: Event (Slider.onChange) → Set Brightness (0.0 to 1.0)
Geofencing
Trigger actions when user enters/leaves an area.
- Drag Geofencing component
- Set latitude, longitude, radius
- Connect onEnter → Show Notification ("Welcome!")
- Connect onExit → Stop tracking
Communication
Network Status
Check internet before API calls.
Flow: Check Network → If/Else (status = "connected") → [true] API Call → [false] Show Alert ("No internet")
Start building at mobcraft.in.
C
Codular Team
Building the future of no-code app development