MapKit Mobile SDK
  • About MapKit
  • Android
    • Getting started
    • Tutorials
    • Class references
      • world.mappable.mapkit
      • world.mappable.mapkit.annotations
      • world.mappable.mapkit.directions
      • world.mappable.mapkit.directions.driving
      • world.mappable.mapkit.geometry
      • world.mappable.mapkit.geometry.geo
      • world.mappable.mapkit.images
      • world.mappable.mapkit.layers
      • world.mappable.mapkit.location
      • world.mappable.mapkit.logo
      • world.mappable.mapkit.map
      • world.mappable.mapkit.mapview
      • world.mappable.mapkit.navigation
      • world.mappable.mapkit.navigation.automotive
      • world.mappable.mapkit.navigation.automotive.custom_route_navigation
      • world.mappable.mapkit.navigation.automotive.layer
      • world.mappable.mapkit.navigation.automotive.layer.styling
      • world.mappable.mapkit.navigation.automotive.simulation
      • world.mappable.mapkit.navigation.balloons
      • world.mappable.mapkit.navigation.guidance_camera
      • world.mappable.mapkit.offline_cache
      • world.mappable.mapkit.personalized_poi
      • world.mappable.mapkit.places
      • world.mappable.mapkit.places.mrc
      • world.mappable.mapkit.places.panorama
      • world.mappable.mapkit.road_events
      • world.mappable.mapkit.road_events_layer
      • world.mappable.mapkit.search
      • world.mappable.mapkit.search.search_layer
      • world.mappable.mapkit.storage
      • world.mappable.mapkit.styling
      • world.mappable.mapkit.tiles
      • world.mappable.mapkit.traffic
      • world.mappable.mapkit.transport
      • world.mappable.mapkit.transport.bicycle
      • world.mappable.mapkit.transport.masstransit
      • world.mappable.mapkit.transport.time
      • world.mappable.mapkit.uri
      • world.mappable.mapkit.user_location
      • world.mappable.runtime
      • world.mappable.runtime.config
      • world.mappable.runtime.i18n
      • world.mappable.runtime.image
      • world.mappable.runtime.network
      • world.mappable.runtime.ui_view
      • world.mappable.runtime.view
  • iOS
  • Flutter
  • Map styles
  • Technical support

Package world.mappable.runtime.image

Class AnimatedImageProvider

java.lang.Object
    ↳ world.mappable.runtime.image.AnimatedImageProvider

abstract class AnimatedImageProvider

Provides the animated image data.

Summary

Constructors

Signature and Description

AnimatedImageProvider()

Methods

Type and modifiers

Method and Description

abstract java.lang.String

getId()
Returns the unique identifier for the image.

abstract java.lang.Object

getImage()
Returns an animated image data buffer.

static AnimatedImageProvider

fromByteArray(byte[] image)
Returns an animated image provider based on the given data.

static AnimatedImageProvider

fromResource(android.content.Context context,
             int resourceId)

Returns an animated image provider based on a given resource.

static AnimatedImageProvider

fromAsset(android.content.Context context,
          java.lang.String assetName)

Returns an animated image provider based on a given asset (from the assets/ directory).

static AnimatedImageProvider

fromFile(java.lang.String fileName)
Returns an animated image provider based on an image file from the internal storage.

static AnimatedImageProvider

fromAnimatedImage(AnimatedImage image)
Returns an animated image provider.

Constuctors

AnimatedImageProvider

AnimatedImageProvider()


Methods

getId

java.lang.String getId()

Returns the unique identifier for the image.

Providers can be cached based on it.


getImage

java.lang.Object getImage()

Returns an animated image data buffer.


fromByteArray

AnimatedImageProvider fromByteArray(byte[] image)

Returns an animated image provider based on the given data.

Supports only APNG format.


fromResource

AnimatedImageProvider fromResource(android.content.Context context,
                                   int resourceId)

Returns an animated image provider based on a given resource.

Supports only APNG format.


fromAsset

AnimatedImageProvider fromAsset(android.content.Context context,
                                java.lang.String assetName)

Returns an animated image provider based on a given asset (from the assets/ directory).

Supports only APNG format.


fromFile

AnimatedImageProvider fromFile(java.lang.String fileName)

Returns an animated image provider based on an image file from the internal storage.

Supports only APNG format.


fromAnimatedImage

AnimatedImageProvider fromAnimatedImage(AnimatedImage image)

Returns an animated image provider.