BitmapWidget

fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition( vertical = WidgetPosition.Vertical.TOP, horizontal = WidgetPosition.Horizontal.LEFT, ), marginX: Float = 0f, marginY: Float = 0f)

The deprecated constructor for BitmapWidget.

Parameters

bitmap

bitmap used to draw widget

position

position of widget

marginX

horizontal margin in pixels

marginY

vertical margin in pixels

fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition( vertical = WidgetPosition.Vertical.TOP, horizontal = WidgetPosition.Horizontal.LEFT, ), marginX: Float = 0f)

The deprecated constructor for BitmapWidget.

Parameters

bitmap

bitmap used to draw widget

position

position of widget

marginX

horizontal margin in pixels

fun BitmapWidget(bitmap: Bitmap, originalPosition: WidgetPosition = WidgetPosition { verticalAlignment = WidgetPosition.Vertical.TOP horizontalAlignment = WidgetPosition.Horizontal.LEFT offsetX = 0f offsetY = 0f })

Parameters

bitmap

bitmap used to draw widget

originalPosition

position of widget