enableOverlayOfflineDataGrabber static method
- int uid
Enable the offline data grabber for an overlay UID.
When enabled the SDK will download overlay data covering offline map regions after map content downloads and cache it for offline use.
Parameters
uid: Overlay UID to enable the grabber for.
Returns
- GemError.success on success.
- GemError.notFound when the overlay UID is unknown.
See also:
- OverlayInfo.uid - Retrieve the unique identifier of an overlay.
- disableOverlayOfflineDataGrabber - Disable the offline data grabber for an overlay.
- isOverlayOfflineDataGrabberEnabled - Check whether the offline data grabber is enabled for an overlay.
- isOverlayOfflineDataGrabberSupported - Check whether an overlay supports the offline data grabber feature.
Implementation
static GemError enableOverlayOfflineDataGrabber(int uid) {
final OperationResult resultString = staticMethod(
'OverlayService',
'enableOverlayOfflineDataGrabber',
args: uid,
);
return GemErrorExtension.fromCode(resultString['result']);
}