Package com.skyhookwireless.wps
Interface WPSPeriodicLocationCallback
-
public interface WPSPeriodicLocationCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddone()Called when WPS is ready for further requests.WPSContinuationhandleError(WPSReturnCode error)Called when WPS encounters an error.WPSContinuationhandleWPSPeriodicLocation(WPSLocation location)Called when a location is determined.
-
-
-
Method Detail
-
handleWPSPeriodicLocation
WPSContinuation handleWPSPeriodicLocation(WPSLocation location)
Called when a location is determined. No WPS methods may be called from this method.- Parameters:
location-- Returns:
- WPS_STOP to stop further location determination efforts, or WPS_CONTINUE. Note location determination may stop even if WPS_CONTINUE is returned.
-
done
void done()
Called when WPS is ready for further requests. No WPS methods may be called until after this method returns, once a WPS method which uses a callback has been called. In other words, only one WPS operation may be active at any time.
-
handleError
WPSContinuation handleError(WPSReturnCode error)
Called when WPS encounters an error. WPS_STOP should be returned to signal that the current operation should stop. WPS_CONTINUE should be returned to signal that the current operation should continue. In some circumstances WPS may choose to stop even though WPS_CONTINUE was returned.- Parameters:
error- error code
-
-