public static interface EnelXManager.ScanCallback
| Modifier and Type | Interface and Description |
|---|---|
static class |
EnelXManager.ScanCallback.Error |
static class |
EnelXManager.ScanCallback.Event |
| Modifier and Type | Method and Description |
|---|---|
void |
onChargingPoint(ChargingPoint chargingPoint,
EnelXManager.ScanCallback.Event event)
Called when a charging point is detected, updated or it has disappeared.
|
void |
onScanError(EnelXManager.ScanCallback.Error error,
java.lang.Exception exception)
Called when an error is encountered before or during the scanning process.
|
void |
onScanStarted()
Called to notify the scan for charging point has been started.
|
void |
onScanStopped()
Called to notify the scan for charging point has been stopped.
|
void onScanError(EnelXManager.ScanCallback.Error error, java.lang.Exception exception)
If called before the scan has been effectively started, the flow is interrupted and no attempt to start the scan will be done.
If called after the scan has been started, it causes the scan to be automatically stopped
and a further call to onScanStopped() will be done.
error - A code representing the error.exception - More details about the encountered error.void onScanStarted()
void onScanStopped()
void onChargingPoint(ChargingPoint chargingPoint, EnelXManager.ScanCallback.Event event)
chargingPoint - The charging point.event - The event related to the given charging point.