CoreLocation Changes for Objective-C
CoreLocation
CLBeaconRegion.h
Declaration | |
---|---|
From | - (NSMutableDictionary *)peripheralDataWithMeasuredPower:(NSNumber *)measuredPower |
To | - (NSMutableDictionary<NSString *,id> * _Nonnull)peripheralDataWithMeasuredPower:(NSNumber * _Nullable)measuredPower |
CLLocationManager.h
Modified CLLocationManager.monitoredRegions
Declaration | |
---|---|
From | @property(readonly, nonatomic, copy) NSSet *monitoredRegions |
To | @property(readonly, nonatomic, copy, nonnull) NSSet<__kindof CLRegion *> *monitoredRegions |
Modified CLLocationManager.rangedRegions
Declaration | |
---|---|
From | @property(readonly, nonatomic, copy) NSSet *rangedRegions |
To | @property(readonly, nonatomic, copy, nonnull) NSSet<__kindof CLRegion *> *rangedRegions |
CLLocationManagerDelegate.h
Declaration | |
---|---|
From | - (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(CLBeaconRegion *)region |
To | - (void)locationManager:(CLLocationManager * _Nonnull)manager didRangeBeacons:(NSArray<CLBeacon *> * _Nonnull)beacons inRegion:(CLBeaconRegion * _Nonnull)region |
Declaration | |
---|---|
From | - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations |
To | - (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray<CLLocation *> * _Nonnull)locations |
CLPlacemark.h
Added CLPlacemark.timeZone
Modified CLPlacemark.areasOfInterest
Declaration | |
---|---|
From | @property(nonatomic, readonly, copy) NSArray *areasOfInterest |
To | @property(nonatomic, readonly, copy, nullable) NSArray<NSString *> *areasOfInterest |