For the complete documentation index, see llms.txt. This page is also available as Markdown.

Device

Provides device locale/OS, album/camera/contacts/location, haptic, and URL opening features.

API List

API
Description
Details

Device.locale

User locale information.

locale

Device.os

Current platform (ios/android) information.

os

Device.getPhotos

Loads a list of photos from the album.

getPhotos

Device.getContacts

Fetches the contacts list page by page.

getContacts

Device.getLocation

Gets the device's current location information.

getLocation

Device.openCamera

Launches the camera and returns the captured image.

openCamera

Device.getAlbumItems

Selects and imports photos and videos from the album.

getAlbumItems

Device.triggerHaptic

Triggers haptic vibration on the device.

triggerHaptic

Device.subscribeLocation

Continuously detects location changes and runs callbacks.

subscribeLocation

Device.openURL

Opens the specified URL in the device's default browser or a related app.

openURL

Was this helpful?