MCPcopy Create free account
hub / github.com/CoderOpen/waimai / camera

Function camera

front/common/permission.js:20–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20function camera() {
21 var result = 0;
22 var AVCaptureDevice = plus.ios.import("AVCaptureDevice");
23 var authStatus = AVCaptureDevice.authorizationStatusForMediaType('vide');
24 if (authStatus === 0) {
25 result = null;
26 } else if (authStatus == 3) {
27 result = 1;
28 } else {
29 result = 0;
30 }
31 plus.ios.deleteObject(AVCaptureDevice);
32 return result;
33}
34
35function location() {
36 var result = 0;

Callers 1

requestIOSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected