Class AssetsManager
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 Summary
Constructors Constructor Description AssetsManager(MapContext context)Creates an instance of AssetsManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterFont(java.lang.String fontName, java.lang.String fontPath)Registers a font under a font name.voidregisterFontWithFallback(java.lang.String fontName, java.lang.String fontPath, java.util.List<java.lang.String> fallbackFontFilePaths)Registers a font set under a font name.
-
-
-
Constructor Detail
-
AssetsManager
public AssetsManager(@NonNull MapContext context)Creates an instance of AssetsManager.
- Parameters:
context-MapContext to which the assets belong.
-
-
Method Detail
-
registerFont
public void registerFont(@NonNull java.lang.String fontName, @NonNull java.lang.String fontPath)Registers a font under a font name. After registration, the font name can be used in
- the SVG
texttag asfont-familyattribute parameter when creating aMapImagewithImageFormat.SVG. MapMarker.TextStyle
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.
- the SVG
-
registerFontWithFallback
public void registerFontWithFallback(@NonNull java.lang.String fontName, @NonNull java.lang.String fontPath, @NonNull java.util.List<java.lang.String> fallbackFontFilePaths)Registers a font set under a font name. After registration, the font name can be used in
- the SVG
texttag asfont-familyattribute parameter when creating aMapImagewithImageFormat.SVG. MapMarker.TextStyle
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.
- the SVG
-
-