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

Function album

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

Source from the content-addressed store, hash-verified

3var isIOS
4
5function album() {
6 var result = 0;
7 var PHPhotoLibrary = plus.ios.import("PHPhotoLibrary");
8 var authStatus = PHPhotoLibrary.authorizationStatus();
9 if (authStatus === 0) {
10 result = null;
11 } else if (authStatus == 3) {
12 result = 1;
13 } else {
14 result = 0;
15 }
16 plus.ios.deleteObject(PHPhotoLibrary);
17 return result;
18}
19
20function camera() {
21 var result = 0;

Callers 1

requestIOSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected