---
title: "configWithMonitorName:queue:eventHandler:"
framework: corelocation
role: symbol
role_heading: Type Method
path: "corelocation/clmonitorconfiguration/configwithmonitorname:queue:eventhandler:"
---

# configWithMonitorName:queue:eventHandler:

Creates a location monitor instance with the name, dispatch queue, and event handler you specify.

## Declaration

```occ
+ (CLMonitorConfiguration *) configWithMonitorName:(NSString *) name queue:(dispatch_queue_t) queue eventHandler:(void (^)(CLMonitor *monitor, CLMonitoringEvent *event)) eventHandler;
```
