startListening static method

void startListening(
  1. GeolocationEvent event,
  2. GeofenceCallback entry
)

Set a callback block for a specific geo-event

Implementation

static void startListening(GeolocationEvent event, GeofenceCallback entry) {
  switch (event) {
    case GeolocationEvent.entry:
      _entryCallback = entry;
      break;
    case GeolocationEvent.exit:
      _exitCallback = entry;
      break;
  }
}