Skip to content
CrossFly is 100% open sourceFollow us on GitHub
CrossFlyCrossFly
Get started

This documentation is currently available in Portuguese. English and other languages are on the way.

Cookbook

Recipes · Device

Camera, GPS, biometrics, Bluetooth, vibration and clipboard — the device hardware from the same Java code.

How-to🟡
How to authenticate with biometrics (fingerprint / Face ID)

Check availability and authenticate the user with fingerprint, Face ID, or Windows Hello.

How-to🔴
How to let the user pick a location on the map

Open a map with a draggable pin and GPS for the user to confirm a coordinate (LatLon) via LocationPicker.

How-to🔴
How to scan and connect to a Bluetooth device (BLE)

Discover Bluetooth devices, connect, and read/receive notifications from GATT characteristics.

How-to🟡
How to record a video with audio and a time limit

Record video (with or without audio), set quality and duration limit, and get the MP4 path.

How-to🟡
How to read a QR Code or barcode

Scan a QR/barcode with the camera using BarcodePicker, or decode an Image with CameraBarcode.

How-to🟡
How to get the GPS position (latitude/longitude)

Read the device GPS coordinates with Location + retrieveGPSData(), or track continuously with GPSThread.

How-to🟡
How to take a photo and get the file path

Capture a photo with the device camera and receive the path of the saved JPEG.

How-to🟡
How to use Text-to-Speech (TTS) and Speech-to-Text (STT)

Speak a text aloud and transcribe the user's speech into text, with locale/speed configuration.

How-to🟢
How to vibrate, emit a beep and use the clipboard

Quick device feedback — vibration, beep sound and copy/paste from the clipboard.