Builder

class Builder : ViewObjectDataBuilder<B, I, D>

Constructors

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

Functions

Link copied to clipboard
fun build(): I
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.
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
Link copied to clipboard
open fun setForcedSize(x: Int, y: Int): SmartLabelData.Builder
Set forced size of a label in pixels
Link copied to clipboard
open fun setHorizontalMirroringEnabled(horizontalMirroringEnabled: Boolean): SmartLabelData.Builder
Enable/disable label background to be mirrored horizontally
Link copied to clipboard
open fun setImageBitmap(@NonNull imageBitmap: BitmapFactory): SmartLabelData.Builder
Set image of the smart label
Link copied to clipboard
open fun setMaxImageSize(x: Int, y: Int): SmartLabelData.Builder
Set maximum image size in pixels
Link copied to clipboard
open fun setMaxTextSize(x: Int, y: Int): SmartLabelData.Builder
Set maximum text size in pixels
Link copied to clipboard
open fun setMaxZoomLevel(maxZoomLevel: Float): SmartLabelData.Builder
Set maximum zoom level for displaying the marker
Link copied to clipboard
open fun setMinZoomLevel(minZoomLevel: Float): SmartLabelData.Builder
Set minimum zoom level for displaying the marker
Link copied to clipboard
open fun setStyleBitmap(@NonNull styleBitmap: BitmapFactory): SmartLabelData.Builder
Set background of the smart label.
Link copied to clipboard
open fun setText(@NonNull text: StyledText): SmartLabelData.Builder
Set the text to be displayed inside label
Link copied to clipboard
open fun setVerticalMirroringEnabled(verticalMirroringEnabled: Boolean): SmartLabelData.Builder
Enable/disable label background to be mirrored vertically
Link copied to clipboard
fun setZIndex(zIndex: Int): B
Link copied to clipboard
fun withPayload(@NonNull payload: Parcelable): B