Add getOfflineRegion Kotlin API (#2516)

This commit is contained in:
JRW
2024-08-08 15:49:49 +01:00
committed by GitHub
parent f4fc63bdc0
commit 9432d805cd
9 changed files with 274 additions and 4 deletions

View File

@@ -136,6 +136,17 @@ public:
*/
virtual void listOfflineRegions(std::function<void(expected<OfflineRegions, std::exception_ptr>)>);
/**
* Retrieve given region in the offline database.
*
* The query will be executed asynchronously and the results passed to the
* given callback, which will be executed on the database thread; it is the
* responsibility of the SDK bindings to re-execute a user-provided callback
* on the main thread.
*/
virtual void getOfflineRegion(int64_t regionID,
std::function<void(expected<std::optional<OfflineRegion>, std::exception_ptr>)>);
/**
* Create an offline region in the database.
*