createOfflineRegion

abstract fun createOfflineRegion(@NonNull geometryDefinition: OfflineRegionGeometryDefinition, @NonNull callback: OfflineRegionCreateCallback)

Creates a new offline region based on a geometry

Parameters

geometryDefinition

A previously defined definition over the region.

callback

Invoked upon success and failure. This callback is invoked on the database thread and the user is responsible for dispatching to an appropriate thread before passing it along.

abstract fun createOfflineRegion(@NonNull tilePyramidDefinition: OfflineRegionTilePyramidDefinition, @NonNull callback: OfflineRegionCreateCallback)

Creates a new offline region based on a tile pyramid

Parameters

tilePyramidDefinition

A tile pyramid definition

callback

Invoked upon success and failure. This callback is invoked on the database thread and the user is responsible for dispatching to an appropriate thread before passing it along.