Bitmap Widget
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
original Position
position of widget
fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition(
vertical = WidgetPosition.Vertical.TOP,
horizontal = WidgetPosition.Horizontal.LEFT,
), marginX: Float = 0.0f, marginY: Float = 0.0f)
Deprecated
Constructor with margins is deprecated, the offset parameters has been merged into the WidgetPosition class, and the legacy constructor might be removed in future releases.
Replace with
BitmapWidget(context, position)
Content copied to clipboard
The deprecated constructor for BitmapWidget.
Parameters
bitmap
bitmap used to draw widget
position
position of widget
margin X
horizontal margin in pixels
margin Y
vertical margin in pixels
fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition(
vertical = WidgetPosition.Vertical.TOP,
horizontal = WidgetPosition.Horizontal.LEFT,
), marginX: Float = 0.0f)
Deprecated
Constructor with margins is deprecated, the offset parameters has been merged into the WidgetPosition class, and the legacy constructor might be removed in future releases.
Replace with
BitmapWidget(context, position)
Content copied to clipboard
The deprecated constructor for BitmapWidget.
Parameters
bitmap
bitmap used to draw widget
position
position of widget
margin X
horizontal margin in pixels