A question about detection IBeacon running at background in IOS sys

I want to know a question about IOS sys, if I’m declare ‘Region’ variable only setup uuid,
myRegion = [[CLBeaconRegion alloc]initWithProximityUUID:my_uuid identifier:myTreasureId];

is it possible listening all minor or major which trigger event, when running at device background?
-(void)locationManager:(CLLocationManager )manager didEnterRegion:(CLRegion )region;
-(void)locationManager:(CLLocationManager )manager didExitRegion:(CLRegion )region;

The trick here is to start ranging in your didEnterRegion delegate. This will result in calls to another delegate, didRangeBeacons, with majors and minors of beacons discovered nearby.


- (void)locationManager:(CLLocationManager *)manager
         didEnterRegion:(CLRegion *)region {
    [manager startRangingBeaconsInRegion:region];

- (void)locationManager:(CLLocationManager *)manager
          didExitRegion:(CLRegion *)region {
    [manager stopRangingBeaconsInRegion:region];

- (void)locationManager:(CLLocationManager *)manager 
        didRangeBeacons:(NSArray<CLBeacon *> *)beacons 
               inRegion:(CLBeaconRegion *)region {
    for (CLBeacon *beacon in beacons) {
        NSLog(@"detected beacon: %@", beacon);