未验证 提交 aab3af9d 编写于 作者: Y yixiangboy 提交者: GitHub

Merge pull request #478 from wjacker/master

[iOS] Add two methods on GMPMocker for iOS 13 
......@@ -172,6 +172,22 @@
}];
}
- (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray<CLBeacon *> *)beacons satisfyingConstraint:(CLBeaconIdentityConstraint *)beaconConstraint API_AVAILABLE(ios(13.0)) {
[self enumDelegate:manager block:^(id<CLLocationManagerDelegate> delegate) {
if ([delegate respondsToSelector:@selector(locationManager:didRangeBeacons:satisfyingConstraint:)]) {
[delegate locationManager:manager didRangeBeacons:beacons satisfyingConstraint:beaconConstraint];
}
}];
}
- (void)locationManager:(CLLocationManager *)manager didFailRangingBeaconsForConstraint:(CLBeaconIdentityConstraint *)beaconConstraint error:(NSError *)error API_AVAILABLE(ios(13.0)) {
[self enumDelegate:manager block:^(id<CLLocationManagerDelegate> delegate) {
if ([delegate respondsToSelector:@selector(locationManager:didFailRangingBeaconsForConstraint:error:)]) {
[delegate locationManager:manager didFailRangingBeaconsForConstraint:beaconConstraint error:error];
}
}];
}
- (void)locationManager:(CLLocationManager *)manager
didEnterRegion:(CLRegion *)region{
[self enumDelegate:manager block:^(id<CLLocationManagerDelegate> delegate) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册