OfflineStorageSizeCallback (API Reference)
Interface OfflineStorageSizeCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A method which is called on the main thread when MapDownloader.getOfflineMapsStorageSizeInBytes(OfflineStorageSizeCallback) has been completed.
The first argument indicates an error in case of a failure. The second argument contains the results.
Both arguments cannot be null at the same time - or not null at the same time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonOfflineStorageSizeCompleted(MapLoaderError error, Long size) A method which is called on the main thread whenMapDownloader.getOfflineMapsStorageSizeInBytes(OfflineStorageSizeCallback)has been completed.
-
Method Details
-
onOfflineStorageSizeCompleted
A method which is called on the main thread when
MapDownloader.getOfflineMapsStorageSizeInBytes(OfflineStorageSizeCallback)has been completed. The first argument indicates an error in case of a failure. The second argument contains the results. Both arguments cannot benullat the same time - or notnullat the same time.- Parameters:
error-Represents an error in case of a failure. It is
nullfor an operation that succeeds.size-The size of offline map. It is
nullin case of an error.
-