Builder

class Builder

Builder for WidgetPosition class.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): WidgetPosition

Build the WidgetPosition from the current settings.

setHorizontalAlignment
Link copied to clipboard
fun setHorizontalAlignment(horizontalAlignment: WidgetPosition.Horizontal): WidgetPosition.Builder

Set the horizontal position, defaults to Horizontal.LEFT.

setOffsetX
Link copied to clipboard
fun setOffsetX(offsetX: Float): WidgetPosition.Builder

Set the horizontal offset in pixels towards the right of the map, defaults to 0.

setOffsetY
Link copied to clipboard
fun setOffsetY(offsetY: Float): WidgetPosition.Builder

Set the vertical offset in pixels towards the bottom of the map, defaults to 0.

setVerticalAlignment
Link copied to clipboard
fun setVerticalAlignment(verticalAlignment: WidgetPosition.Vertical): WidgetPosition.Builder

Set the vertical position, defaults to Vertical.TOP.

Properties

horizontalAlignment
Link copied to clipboard
var horizontalAlignment: WidgetPosition.Horizontal

the horizontal position relative to the map, defaults to Horizontal.LEFT.

offsetX
Link copied to clipboard
var offsetX: Float = 0f

the horizontal offset in pixels towards the right of the map, defaults to 0.

offsetY
Link copied to clipboard
var offsetY: Float = 0f

the vertical offset in pixels towards the bottom of the map, defaults to 0.

verticalAlignment
Link copied to clipboard
var verticalAlignment: WidgetPosition.Vertical

the vertical position relative to the map, defaults to Vertical.TOP.