BitmapWidget
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
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
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 = 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
marginX
horizontal margin in pixels