ATAKImageFactory

open class ATAKImageFactory(tilesDao: Dao<ATAKTiles, Int>, isReadOnly: Boolean, contentKey: String, key: Int, format: Bitmap.CompressFormat, quality: Int = 100) : ImageSource.ImageFactory, ResourcePostprocessor

Constructors

Link copied to clipboard
constructor(tilesDao: Dao<ATAKTiles, Int>, isReadOnly: Boolean, contentKey: String, key: Int, format: Bitmap.CompressFormat, quality: Int = 100)

Properties

Link copied to clipboard

Bitmap factory runs asynchronously by default, but this behavior can be changed by overriding current attribute.

Functions

Link copied to clipboard
open suspend override fun createBitmap(): Bitmap?

Returns the bitmap associated with this factory. This method may be called more than once and may be called from a non-UI thread. Each invocation must return a bitmap with equivalent content, dimensions and configuration. Any side effects applied to the WorldWind scene by the factory must be executed on the main thread.
The factory must not retain any reference to the returned bitmap and must not attempt to recycle the bitmap.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open suspend override fun <Resource> process(resource: Resource): Resource

Process resource according to specified algorithm implementation

Link copied to clipboard
open override fun toString(): String