AndroidMOKOImageLoader

MOKOImageLoader backed by the drawable resources of context.

Parameters

context

used to resolve the drawable behind an ImageResource; an application context is enough and avoids leaking an activity into a long-lived loader.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
open override fun fromResource(imageResource: ImageResource): ImageProvider

Returns an ImageProvider for the drawable behind imageResource.

open override fun fromResource(imageResource: ImageResource, isCacheable: Boolean): ImageProvider

Returns an ImageProvider for the drawable behind imageResource, caching the decoded image in MapKit when isCacheable is true.