• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com专业计算机教程网站
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure
您的位置:首页 > 网页设计 >HBuilder教程 > iOS平台-Native.js获取GPS授权状态

iOS平台-Native.js获取GPS授权状态

作者:教程 字体:[增加 减小] 来源:互联网 时间:2017-05-31

本文主要包含ios react native,ios native,unity ios native,native.js,native.js官网等相关知识,教程希望在学习及工作中可以帮助到您
"); </div> var CLLocationManager = plus.ios.import("CLLocationManager");
var authorizationStatus = CLLocationManager.authorizationStatus();
switch(authorizationStatus) {
      case 0:
      /// User has not yet made a choice with regards to this application
      break;
      case 1:
      // This application is not authorized to use location services.  Due
    // to active restrictions on location services, the user cannot change
    // this status, and may not have personally denied authorization
      break;
      case 2:
        // User has explicitly denied authorization for this application, or
    // location services are disabled in Settings.
      break;
      case 3:
        // User has granted authorization to use their location at any time,
    // including monitoring for regions, visits, or significant location changes.
      break;
      case 4:
       // User has granted authorization to use their location only when your app
    // is visible to them (it will be made visible to them if you continue to
    // receive location updates while in the background).  Authorization to use
    // launch APIs has not been granted.
      break;
      case 5:
     // This value is deprecated, but was equivalent to the new -Always value.
      break;
      defalut:
      break;
}

您可能想查找下面的文章:

  • iOS平台-Native.js获取GPS授权状态
  • iOS平台-用Native.js如何把base64数据保存为图片
  • iOS平台-Native.js获取包名

相关文章

  • 2017-05-31MUI APP关于页面之间的传值,plusready和自定义事件
  • 2017-05-31HBuilder 适合做什么
  • 2017-05-31HBuilder 获取通话记录 (Android)
  • 2017-05-31html5+ plus和phoneGap、cordova的比较
  • 2017-05-31mui android native.js取CPU核数
  • 2017-05-31mui 对话框 点击按钮不关闭对话框的办法
  • 2017-05-31提升HTML5的性能体验系列之四 使用原生UI(nativeUI)
  • 2017-05-31HBuilder百度地图显示不出来怎么解决?
  • 2017-05-31MUI APP 项目收到Appstore的警告邮件
  • 2017-05-31HBuild mui App开发开发微信/支付宝支付

文章分类

  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure

最近更新的内容

    • Hbuilder MUI如何增加自定义icon图标
    • HBuilder开发App教程-定制图标,启动页以及打包
    • Hbuilder MUI 关闭Webview窗口
    • hbuilder mui 页面的a连接跳转不能使用?
    • 讲讲HTML5的APP的登录功能及安全调用接口的方式原理
    • mui iOS中使用video标签播放视频,禁止自动全屏的方案
    • mui dtpicker 时间的设置
    • MUI Native.js如何访问蓝牙Bluetooth?
    • IOS,Android调用原生代码拨打电话、发送短信功能
    • 真机运行、手机运行、真机联调常见问题

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有