29.f7f911b0.js 4.3 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[29],{351:function(t,e,a){"use strict";a.r(e);var i=a(17),l=Object(i.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h2",{attrs:{id:"常用api"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#常用api"}},[t._v("#")]),t._v(" 常用api")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("API")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("说明")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/system/info.html#scancode"}},[t._v("scancode")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("扫码,包括扫描二维码,条形码。")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/request/request.html#request"}},[t._v("request")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("发起网络请求")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/storage/storage.html#setapdatastorage-object"}},[t._v("setAPDataStorage")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("以key-value形式持久化存储数据到应用沙盒")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/storage/storage.html#getapdatastorage-object"}},[t._v("getAPDataStorage")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("取出以key-value形式持久化存储数据到应用沙盒的值")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/location/location.html#getlocation"}},[t._v("getLocation")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("获取当前的经纬度和地理位置信息,默认接入的是高德地图,需要在云打包配置高德地图申请的应用key")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/system/info.html#disablescreenshot"}},[t._v("disableScreenShot")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("安卓禁止截屏")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/system/info.html#allowscreenshot"}},[t._v("allowScreenShot")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("安卓允许截屏")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/ui/prompt.html#opendoc"}},[t._v("openDoc")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("文件预览,支持pdf,doc,excel文档")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/ui/prompt.html#openfile"}},[t._v("openFile")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("本地离线文档预览,安卓调用第三方程序打开指定的文件,ios可以直接打开预览")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/event/event.html#appenterforeground-callback"}},[t._v("enterforeground")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("app进入前台事件")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/event/event.html#appenterbackground-callback"}},[t._v("enterbackground")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("app进入后台事件")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/biometric/biometric.html#fingerprintverification"}},[t._v("fingerprintverification")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("进行生物识别(指纹/面容)验证")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/media/camera-context.html#takepicture-object"}},[t._v("takePicture")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("调用拍照")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/media/image.html#picksingleimagewithedit"}},[t._v("pickSingleImageWithEdit")])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("单选并编辑图片")])])])])])}),[],!1,null,null,null);e.default=l.exports}}]);