RetroArch
Public Member Functions | Package Attributes | Private Attributes | Static Private Attributes | List of all members
com.retroarch.browser.retroactivity.RetroActivityLocation Class Reference
Inheritance diagram for com.retroarch.browser.retroactivity.RetroActivityLocation:
[legend]
Collaboration diagram for com.retroarch.browser.retroactivity.RetroActivityLocation:
[legend]

Public Member Functions

void onConnected (Bundle dataBundle)
 
void onDisconnected ()
 
void onConnectionFailed (ConnectionResult connectionResult)
 
void onLocationSetInterval (int update_interval_in_ms, int distance_interval)
 
void onLocationInit ()
 
void onLocationStart ()
 
void onLocationFree ()
 
void onLocationStop ()
 
double onLocationGetLatitude ()
 
double onLocationGetLongitude ()
 
double onLocationGetHorizontalAccuracy ()
 
boolean onLocationHasChanged ()
 
void onLocationChanged (Location location)
 
void onPause ()
 
void onResume ()
 
void onStop ()
 

Package Attributes

LocationRequest mLocationRequest = null
 
boolean mUpdatesRequested = false
 
boolean locationChanged = false
 
boolean location_service_running = false
 

Private Attributes

LocationClient mLocationClient = null
 
Location mCurrentLocation
 

Static Private Attributes

static int CONNECTION_FAILURE_RESOLUTION_REQUEST = 0
 

Detailed Description

Class that implements location-based functionality for the RetroActivityFuture and RetroActivityPast activities.

Member Function Documentation

◆ 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
Here is the call graph for this function:

◆ 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.

Here is the call graph for this function:

◆ 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

Here is the caller graph for this function:

◆ onLocationStart()

void com.retroarch.browser.retroactivity.RetroActivityLocation.onLocationStart ( )
inline

Executed upon starting the LocationClient.

◆ 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.

Here is the caller graph for this function:

◆ onPause()

void com.retroarch.browser.retroactivity.RetroActivityLocation.onPause ( )
inline
Here is the call graph for this function:

◆ onResume()

void com.retroarch.browser.retroactivity.RetroActivityLocation.onResume ( )
inline
Here is the call graph for this function:

◆ onStop()

void com.retroarch.browser.retroactivity.RetroActivityLocation.onStop ( )
inline
Here is the call graph for this function:

Member Data Documentation

◆ 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: