📱

Device Features - Biometric, Flashlight, Sensors & More

Access device hardware

6 min read
← 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

ComponentDataEvents
AccelerometerX, Y, Z motiononAccelerometerChange
GyroscopeRotation rateonGyroscopeChange
BatteryStatusLevel, chargingonBatteryChange
WifiStatusConnection infoonWifiChange

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

FeatureHow
Send SMSFlow: Send SMS (phone, message) - opens SMS app
Send EmailFlow: Send Email (to, subject, body) - opens email app
Make CallFlow: Make Call (phone) - opens dialer
Text-to-SpeechFlow: Speak ("Hello!") - reads text aloud
Speech-to-TextFlow: Start Listening → saves to variable

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

Build Your App Now

No coding required. AI-powered. Free to start.

Get Started Free