@Deprecated
public final class IconFactory
extends java.lang.Object
icon is used to display bitmaps on top of the map using Marker
.
Modifier and Type | Method | Description |
---|---|---|
Icon |
defaultMarker() |
Deprecated.
Provides an icon using the default marker icon used for
Marker . |
Icon |
fromAsset(java.lang.String assetName) |
Deprecated.
Creates an Icon using the name of a Bitmap image in the assets directory.
|
Icon |
fromBitmap(android.graphics.Bitmap bitmap) |
Deprecated.
Creates an icon from a given Bitmap image.
|
Icon |
fromFile(java.lang.String fileName) |
Deprecated.
Create an Icon using the name of a Bitmap image file located in the internal storage.
|
Icon |
fromPath(java.lang.String absolutePath) |
Deprecated.
Creates an Icon using the absolute file path of a Bitmap image.
|
Icon |
fromResource(int resourceId) |
Deprecated.
Creates an icon using the resource ID of a Bitmap image.
|
static IconFactory |
getInstance(android.content.Context context) |
Deprecated.
Get a single instance of IconFactory.
|
static Icon |
recreate(java.lang.String iconId,
android.graphics.Bitmap bitmap) |
Deprecated.
Create an Icon using a previously created icon identifier along with a provided Bitmap.
|
public static IconFactory getInstance(@NonNull android.content.Context context)
context
- the context to derive the application context frompublic Icon fromBitmap(@NonNull android.graphics.Bitmap bitmap)
bitmap
- image used for creating the Icon.public Icon fromResource(@DrawableRes int resourceId)
resourceId
- The resource ID of a Bitmap image.null
if failed to load.public Icon defaultMarker()
Marker
.Marker
icon.public Icon fromAsset(@NonNull java.lang.String assetName)
assetName
- The name of a Bitmap image in the assets directory.public Icon fromPath(@NonNull java.lang.String absolutePath)
absolutePath
- The absolute path of the Bitmap image.public Icon fromFile(@NonNull java.lang.String fileName)
fileName
- The name of the Bitmap image file.public static Icon recreate(@NonNull java.lang.String iconId, @NonNull android.graphics.Bitmap bitmap)
iconId
- The Icon identifier you'd like to recreate.bitmap
- a Bitmap used to replace the current one.