zoukankan      html  css  js  c++  java
  • CLLocationManager

    Requesting Authorization for Location Services

    - (void)requestWhenInUseAuthorization
    - (void)requestAlwaysAuthorization
    

    Determining the Availability of Services 

    + (CLAuthorizationStatus)authorizationStatus
    + (BOOL)locationServicesEnabled
    + (BOOL)deferredLocationUpdatesAvailable
    + (BOOL)significantLocationChangeMonitoringAvailable
    + (BOOL)headingAvailable
    + (BOOL)isMonitoringAvailableForClass:(Class)regionClass
    + (BOOL)isRangingAvailable

    配置状态CLAuthorizationStatus:

    typedef enum {
       kCLAuthorizationStatusNotDetermined  = 0,//未设置
       kCLAuthorizationStatusRestricted ,//不允许使用而且不可设置。例如家长控制等
       kCLAuthorizationStatusDenied ,//不允许使用
       kCLAuthorizationStatusAuthorized ,//可以使用。IOS8反对使用。
       kCLAuthorizationStatusAuthorizedAlways  = kCLAuthorizationStatusAuthorized ,//IOS8新增
       kCLAuthorizationStatusAuthorizedWhenInUse //IOS8新增
    } CLAuthorizationStatus;
    
  • 相关阅读:
    C#异步编程:多线程基础Thread类
    WPF:TextBox控件禁用中文输入
    C#:泛型的协变和逆变
    C#:泛型接口
    C#:泛型委托
    C#:泛型类
    Jetbrains Rider:缺少.NET Framework 4.5.2
    C#:泛型方法
    C#:泛型
    C#:接口
  • 原文地址:https://www.cnblogs.com/zhongriqianqian/p/3979799.html
Copyright © 2011-2022 走看看