Interface ImportsManager


public interface ImportsManager
Imports manager
Since:
1.5
  • Method Details

    • importFile

      void importFile(@NonNull List<android.net.Uri> sourceUris, boolean overwriteExisting, @NonNull FileImportListener importListener)
      Import app data from specified source. This is a one-time import and cannot be modified later. Data is deleted via AppDataManager.deleteAppData(List, DataDeleteListener).
      Parameters:
      sourceUris - list pf source URIs to import data from
      overwriteExisting - true to overwrite files that already exists in SDK data directory
      importListener - listener called on import status change
      Since:
      1.5
    • createIncrementalImportCategory

      void createIncrementalImportCategory(@NonNull String categoryName, @Nullable String icon, @FloatRange(from=0.0,to=1.0) float hotSpotX, @FloatRange(from=0.0,to=1.0) float hotSpotY, @NonNull ImportsManager.CreateIncrementalImportCategoryListener listener)
      Create incremental import category. Use addIncrementalImportData(String, List, AddIncrementalImportDataListener) to add data to it.
      Parameters:
      categoryName - category name
      icon - category map icon. PNG file is required, 64x64 pixels recommended.
      hotSpotX - icon hot spot in horizontal dimension defining precise icon placement. Value of 0.0 means that left side of the icon will be on the icon coordinate, 0.5 middle of the icon and 1.0 right side of the icon. Ignored when icon parameter is null.
      hotSpotY - icon hot spot in vertical dimension defining precise icon placement. Value of 0.0 means that top side of the icon will be on the icon coordinate, 0.5 middle of the icon and 1.0 bottom side of the icon. Ignored when icon parameter is null.
      listener - listener called when category creation is finished
      Since:
      1.5
    • addIncrementalImportData

      void addIncrementalImportData(@NonNull String categoryName, @NonNull List<ImportData> importDataList, @NonNull ImportsManager.AddIncrementalImportDataListener listener)
      Add data to specified incremental import
      Parameters:
      categoryName - import category previously created by createIncrementalImportCategory(String, String, float, float,CreateIncrementalImportCategoryListener)
      importDataList - list of data to import
      listener - listener called when adding the data is finished
      Since:
      1.5
    • getImportCategories

      void getImportCategories(@Nullable ImportCategory.Type importType, @NonNull ImportsManager.ImportCategoriesListener listener)
      Get imported categories
      Parameters:
      importType - import type. All import types if null.
      listener - listener to receive imported categories list
      Since:
      1.5