Class AssetsManager

java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.AssetsManager

public final class AssetsManager extends NativeBase

Assets manager interface. Can be used to make assets available to the SDK.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • Constructor Details

    • AssetsManager

      public AssetsManager(@NonNull MapContext context)

      Creates an instance of AssetsManager.

      Parameters:
      context -

      MapContext to which the assets belong.

  • Method Details

    • registerFont

      public void registerFont(@NonNull String fontName, @NonNull String fontPath)

      Registers a font under a font name. After registration, the font name can be used in

      Repeated registration with the same font name is ignored.

      Parameters:
      fontName -

      A font name.

      fontPath -

      A font file path. TTF, OTF and WOFF formats are supported.

      Can be an asset file path or an absolute file path.

    • registerFontWithFallback

      public void registerFontWithFallback(@NonNull String fontName, @NonNull String fontPath, @NonNull List<String> fallbackFontFilePaths)

      Registers a font set under a font name. After registration, the font name can be used in

      Repeated registration with the same font name is ignored.

      Parameters:
      fontName -

      A font name.

      fontPath -

      A font file path. TTF, OTF and WOFF formats are supported.

      Can be an asset file path or an absolute file path.

      fallbackFontFilePaths -

      Additional font files are intended to be used if main font does not contain required character symbol and shall be sorted starting from most useful.