Class that implements location-based functionality for the RetroActivityFuture and RetroActivityPast activities.
◆ onConnected()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onConnected |
( |
Bundle |
dataBundle | ) |
|
|
inline |
Called by Location Services when the request to connect the client finishes successfully. At this point, you can request the current location or start periodic updates
◆ onConnectionFailed()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onConnectionFailed |
( |
ConnectionResult |
connectionResult | ) |
|
|
inline |
Called by Location Services if the attempt to Location Services fails.
◆ onDisconnected()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onDisconnected |
( |
| ) |
|
|
inline |
Called by Location Services if the connection to the location client drops because of an error.
◆ onLocationChanged()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationChanged |
( |
Location |
location | ) |
|
|
inline |
◆ onLocationFree()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationFree |
( |
| ) |
|
|
inline |
Free up location services resources.
◆ onLocationGetHorizontalAccuracy()
double com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationGetHorizontalAccuracy |
( |
| ) |
|
|
inline |
Gets the horizontal accuracy of the current location in meters. (NOTE: There seems to be no vertical accuracy for a given location with the Android location API)
- Returns
- the horizontal accuracy of the current position.
◆ onLocationGetLatitude()
double com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationGetLatitude |
( |
| ) |
|
|
inline |
Gets the latitude at the current location in degrees.
- Returns
- the latitude at the current location.
◆ onLocationGetLongitude()
double com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationGetLongitude |
( |
| ) |
|
|
inline |
Gets the longitude at the current location in degrees.
- Returns
- the longitude at the current location.
◆ onLocationHasChanged()
boolean com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationHasChanged |
( |
| ) |
|
|
inline |
Tells us whether the location listener callback has updated the current location since the last time we polled.
- Returns
- true if location has changed, false if location has not changed.
◆ onLocationInit()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationInit |
( |
| ) |
|
|
inline |
Initializing methods for location based functionality.
◆ onLocationSetInterval()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationSetInterval |
( |
int |
update_interval_in_ms, |
|
|
int |
distance_interval |
|
) |
| |
|
inline |
Sets the update interval at which location-based updates should occur
◆ onLocationStart()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationStart |
( |
| ) |
|
|
inline |
◆ onLocationStop()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationStop |
( |
| ) |
|
|
inline |
Executed upon stopping the location client. Does nothing if called when the client is not started.
◆ onPause()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onPause |
( |
| ) |
|
|
inline |
◆ onResume()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onResume |
( |
| ) |
|
|
inline |
◆ onStop()
void com.retroarch.browser.retroactivity.RetroActivityLocation.onStop |
( |
| ) |
|
|
inline |
◆ CONNECTION_FAILURE_RESOLUTION_REQUEST
int com.retroarch.browser.retroactivity.RetroActivityLocation.CONNECTION_FAILURE_RESOLUTION_REQUEST = 0 |
|
staticprivate |
◆ location_service_running
boolean com.retroarch.browser.retroactivity.RetroActivityLocation.location_service_running = false |
|
package |
◆ locationChanged
boolean com.retroarch.browser.retroactivity.RetroActivityLocation.locationChanged = false |
|
package |
◆ mCurrentLocation
Location com.retroarch.browser.retroactivity.RetroActivityLocation.mCurrentLocation |
|
private |
◆ mLocationClient
LocationClient com.retroarch.browser.retroactivity.RetroActivityLocation.mLocationClient = null |
|
private |
◆ mLocationRequest
LocationRequest com.retroarch.browser.retroactivity.RetroActivityLocation.mLocationRequest = null |
|
package |
◆ mUpdatesRequested
boolean com.retroarch.browser.retroactivity.RetroActivityLocation.mUpdatesRequested = false |
|
package |
The documentation for this class was generated from the following file: