public class NoLocationAction
extends java.lang.Object
implements com.tomtom.online.sdk.map.ui.currentlocation.CurrentLocationViewAction
Constructor and Description |
---|
NoLocationAction(android.content.Context context,
com.tomtom.online.sdk.map.ui.currentlocation.CurrentLocationView.LocationStatusListener locationStatus)
Constructor that uses
CurrentLocationView.LocationStatusListener to listen for availability of location
and context to display Toast message if GPS is not available. |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid() |
void |
perform() |
public NoLocationAction(android.content.Context context, com.tomtom.online.sdk.map.ui.currentlocation.CurrentLocationView.LocationStatusListener locationStatus)
CurrentLocationView.LocationStatusListener
to listen for availability of location
and context to display Toast message if GPS is not available.context
- view context.locationStatus
- location status listener used to check if current location is available.