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

设备

提供设备的区域设置·OS、相册·相机·联系人·位置、触觉反馈、打开 URL 功能。

API 列表

API
说明
详情

Device.locale

用户区域设置信息

locale

Device.os

当前平台(ios/android) 信息

os

Device.getPhotos

从相册中加载照片列表

getPhotos

Device.getContacts

按页获取联系人列表

getContacts

Device.getLocation

获取设备的当前位置

getLocation

Device.openCamera

启动相机并返回拍摄的图像

openCamera

Device.getAlbumItems

从相册中选择照片·视频并获取

getAlbumItems

Device.triggerHaptic

在设备上触发触觉振动

triggerHaptic

Device.subscribeLocation

持续监测位置变化并执行回调

subscribeLocation

Device.openURL

在设备的默认浏览器或相关应用中打开指定的 URL

openURL

这有帮助吗?