setAllowsBackgroundLocationUpdates method

void setAllowsBackgroundLocationUpdates(
  1. bool allowsBackgroundLocationUpdates
)

指定是否允许后台定位 allowsBackgroundLocationUpdates为true则允许后台定位 allowsBackgroundLocationUpdates为false则不允许后台定位

Implementation

void setAllowsBackgroundLocationUpdates(
    bool allowsBackgroundLocationUpdates) {
  this.allowsBackgroundLocationUpdates = allowsBackgroundLocationUpdates;
}