Function setAllowsBackgroundLocationUpdates

  • 是否允许后台定位

    只在iOS 9.0 及之后起作用。 设置为YES的时候必须保证 Background Modes 中的 Location updates 处于选中状态,否则会抛出异常。 由于iOS系统限制,需要在定位未开始之前或定位停止之后,修改该属性的值才会有效果。

    Default

    false
    

    Platform

    ios

    Parameters

    • isAllow: boolean

    Returns void

Generated using TypeDoc