FMTC Docs
Project Links💝 Support Me
v8
v8
  • flutter_map_tile_caching
  • Is FMTC Right For Me?
  • Get Started
    • Quickstart
    • Installation
    • Additional Setup
    • Example Application
  • Usage
    • Initialisation
    • Using Roots & Stores
      • Management
      • Statistics
      • Metadata
      • Recovery
      • Migrator (v6 -> v7)
    • flutter_map Integration
    • Global Settings
    • Full API Reference
  • Bulk Downloading
    • Introduction
    • 1️⃣Create A Region
    • 2️⃣Prepare For Downloading
    • 3️⃣Start In Foreground
      • Buffering
      • 4️⃣Listen For Progress
    • 3️⃣Start In Background
      • Limitations
    • Cancel Download
  • Import & Export
    • Introduction
    • Importing
    • Exporting
  • Migration
    • v7 -> v8 Migration
    • v6 -> v7 Migration
  • Known Issues
  • Credits
  • flutter_map Docs
Powered by GitBook

© Luka Stillingfleet (JaffaKetchup)

On this page
  • With Platform GUI (withGUI)
  • With A Known File (manual)
  • Collision/Conflict Resolution

Was this helpful?

Export as PDF
  1. Import & Export

Importing

fmtc_plus_sharing Module

PreviousIntroductionNextExporting

Last updated 2 years ago

Was this helpful?

It is possible to re-import a store generated by an Exporting.

Attempting to import a damaged/corrupted store may result in a fatal app crash, or major errors at least.

See for more information about how this may be handled in future.

With Platform GUI (withGUI)

With A Known File (manual)

Collision/Conflict Resolution

In the event that a store with the same name already exists as the store that is trying to be imported, FMTC has only simple conflict resolution behaviour.

When a collision is detected, the defined callback collisionHandler is called asynchronously, with the filename of the import file in addition to the real name of the contained store. It can return either:

  • true: Override the entire existing store and its contents

  • false: Skip/cancel the import

withGUI method - FMTCImportSharingModule extension - fmtc_plus_sharing library - Dart API
manual method - FMTCImportSharingModule extension - fmtc_plus_sharing library - Dart API
Logo
Logo
Initialisation Safety