Methods Summary |
---|
protected ListenerOperation | getHandlerOperation(int result)
final int status;
switch (result) {
case RESULT_SUCCESS:
status = GpsNavigationMessageEvent.STATUS_READY;
break;
case RESULT_NOT_AVAILABLE:
case RESULT_NOT_SUPPORTED:
case RESULT_INTERNAL_ERROR:
status = GpsNavigationMessageEvent.STATUS_NOT_SUPPORTED;
break;
case RESULT_GPS_LOCATION_DISABLED:
status = GpsNavigationMessageEvent.STATUS_GPS_LOCATION_DISABLED;
break;
default:
Log.v(TAG, "Unhandled addListener result: " + result);
return null;
}
return new StatusChangedOperation(status);
|
protected void | handleGpsEnabledChanged(boolean enabled)
int status = enabled ?
GpsNavigationMessageEvent.STATUS_READY :
GpsNavigationMessageEvent.STATUS_GPS_LOCATION_DISABLED;
foreach(new StatusChangedOperation(status));
|
public void | onCapabilitiesUpdated(boolean isGpsNavigationMessageSupported)
int status = isGpsNavigationMessageSupported ?
GpsNavigationMessageEvent.STATUS_READY :
GpsNavigationMessageEvent.STATUS_NOT_SUPPORTED;
setSupported(isGpsNavigationMessageSupported, new StatusChangedOperation(status));
|
public void | onNavigationMessageAvailable(android.location.GpsNavigationMessageEvent event)
ListenerOperation<IGpsNavigationMessageListener> operation =
new ListenerOperation<IGpsNavigationMessageListener>() {
@Override
public void execute(IGpsNavigationMessageListener listener)
throws RemoteException {
listener.onGpsNavigationMessageReceived(event);
}
};
foreach(operation);
|