Builder

class Builder : ViewObjectDataBuilder<SmartLabelData.Builder, MapSmartLabel, SmartLabelData>

Constructors

Builder
Link copied to clipboard
open fun Builder(@NonNull route: Route, creator: ObjectCreator<MapSmartLabel, SmartLabelData>)

Functions

build
Link copied to clipboard
fun build(): I
setAnchorOffset
Link copied to clipboard
open fun setAnchorOffset(x: Float, y: Float): SmartLabelData.Builder
Set the relative position of MapSmartLabel from its anchored location Value 0,0 is top left location, 1,1 is bottom right Default value is 0.0,0.
setClickableArea
Link copied to clipboard
open fun setClickableArea(left: Int, top: Int, rigth: Int, bottom: Int): SmartLabelData.Builder
Set clickable area defined by margins from image edges
setForcedSize
Link copied to clipboard
open fun setForcedSize(x: Int, y: Int): SmartLabelData.Builder
Set forced size of a label in pixels
setHorizontalMirroringEnabled
Link copied to clipboard
open fun setHorizontalMirroringEnabled(horizontalMirroringEnabled: Boolean): SmartLabelData.Builder
Enable/disable label background to be mirrored horizontally
setImageBitmap
Link copied to clipboard
open fun setImageBitmap(@NonNull imageBitmap: BitmapFactory): SmartLabelData.Builder
Set image of the smart label
setMaxImageSize
Link copied to clipboard
open fun setMaxImageSize(x: Int, y: Int): SmartLabelData.Builder
Set maximum image size in pixels
setMaxTextSize
Link copied to clipboard
open fun setMaxTextSize(x: Int, y: Int): SmartLabelData.Builder
Set maximum text size in pixels
setMaxZoomLevel
Link copied to clipboard
open fun setMaxZoomLevel(maxZoomLevel: Float): SmartLabelData.Builder
Set maximum zoom level for displaying the marker
setMinZoomLevel
Link copied to clipboard
open fun setMinZoomLevel(minZoomLevel: Float): SmartLabelData.Builder
Set minimum zoom level for displaying the marker
setStyleBitmap
Link copied to clipboard
open fun setStyleBitmap(@NonNull styleBitmap: BitmapFactory): SmartLabelData.Builder
Set background of the smart label.
setText
Link copied to clipboard
open fun setText(@NonNull text: StyledText): SmartLabelData.Builder
Set the text to be displayed inside label
setVerticalMirroringEnabled
Link copied to clipboard
open fun setVerticalMirroringEnabled(verticalMirroringEnabled: Boolean): SmartLabelData.Builder
Enable/disable label background to be mirrored vertically
setZIndex
Link copied to clipboard
fun setZIndex(zIndex: Int): B
withPayload
Link copied to clipboard
fun withPayload(@NonNull payload: Parcelable): B