where ClassTest is conform to protocol GUHomeLocationListener:
/** * Delegate to implement in order to receive callbacks for the home location updates */@objcpublicprotocolGUHomeLocationListener {/** Public constructor */@objcinit()/** Called when a new home location is detected - parameter GUHomeLocation: Home location detected */@objcfunconNewHomeLocationDetected(home: GUHomeLocation) -> ()}
Remove home location listener
//importing the frameworkimportGeoUniq...GeoUniq.sharedInstance().removeHomeLocationListener(listener: ClassTest)...
//importing the frameworkimportGeoUniq...let work: GUWorkLocation?= GeoUniq.sharedInstance().getWorkLocation()...
//importing the frameworkimportGeoUniq...GeoUniq.sharedInstance().setWorkLocationListener(listener: ClassTest)...
/** * Delegate to implement in order to receive callbacks for the work location updates */@objcpublicprotocolGUWorkLocationListener {/** Public constructor */@objcinit()/** Called when a new work location is detected - parameter work: Work location detected */@objcfunconNewWorkLocationDetected(work: GUWorkLocation) -> ()}
//importing the frameworkimportGeoUniq...GeoUniq.sharedInstance().removeWorkLocationListener(listener: ClassTest)...
//importing the frameworkimportGeoUniq...let workLocationListeners: [GUWorkLocation]?= GeoUniq.sharedInstance().getWorkLocationListeners()...
//importing the frameworkimportGeoUniq...GeoUniq.sharedInstance().removeWorkLocationListeners()...