public abstract class GnssMeasurementsProvider extends Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
RemoteListenerHelper.ListenerOperation<TListener extends IInterface> |
Modifier and Type | Field and Description |
---|---|
protected static int |
RESULT_GPS_LOCATION_DISABLED |
protected static int |
RESULT_INTERNAL_ERROR |
protected static int |
RESULT_NOT_AVAILABLE |
protected static int |
RESULT_NOT_SUPPORTED |
protected static int |
RESULT_SUCCESS |
protected static int |
RESULT_UNKNOWN |
Modifier | Constructor and Description |
---|---|
protected |
GnssMeasurementsProvider(Handler handler) |
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(TListener listener) |
protected void |
foreach(RemoteListenerHelper.ListenerOperation<TListener> operation) |
protected RemoteListenerHelper.ListenerOperation<IGnssMeasurementsListener> |
getHandlerOperation(int result) |
protected abstract boolean |
isAvailableInPlatform() |
protected abstract boolean |
isGpsEnabled() |
void |
onCapabilitiesUpdated(boolean isGnssMeasurementsSupported) |
void |
onGpsEnabledChanged() |
void |
onMeasurementsAvailable(GnssMeasurementsEvent event) |
protected abstract boolean |
registerWithService() |
void |
removeListener(TListener listener) |
protected void |
setSupported(boolean value) |
protected boolean |
tryUpdateRegistrationWithService() |
protected abstract void |
unregisterFromService() |
protected void |
updateResult() |
protected static final int RESULT_SUCCESS
protected static final int RESULT_NOT_AVAILABLE
protected static final int RESULT_NOT_SUPPORTED
protected static final int RESULT_GPS_LOCATION_DISABLED
protected static final int RESULT_INTERNAL_ERROR
protected static final int RESULT_UNKNOWN
protected GnssMeasurementsProvider(Handler handler)
public void onMeasurementsAvailable(GnssMeasurementsEvent event)
public void onCapabilitiesUpdated(boolean isGnssMeasurementsSupported)
public void onGpsEnabledChanged()
protected RemoteListenerHelper.ListenerOperation<IGnssMeasurementsListener> getHandlerOperation(int result)
public boolean addListener(TListener listener)
public void removeListener(TListener listener)
protected abstract boolean isAvailableInPlatform()
protected abstract boolean isGpsEnabled()
protected abstract boolean registerWithService()
protected abstract void unregisterFromService()
protected void foreach(RemoteListenerHelper.ListenerOperation<TListener> operation)
protected void setSupported(boolean value)
protected boolean tryUpdateRegistrationWithService()
protected void updateResult()