KNMapCalloutBubbleUpdate
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Configures a marker's callout bubble, including its title, subtitle, font, text size, and text color. If you set information in the callOutBubbleUpdate property, the content can be displayed on the marker as a callout bubble.
Constructor
Create this class through builder; it cannot be instantiated directly. Calling build creates an immutable KNMapCalloutBubbleUpdate from the configured values.
build()
Sets the callout bubble title.
Example code — Set callout bubble title
fun createKNMapCalloutBubbleUpdate(builder: KNMapCalloutBubbleUpdate.Builder): KNMapCalloutBubbleUpdate {
return builder.build()
}Methods
setTitle
Sets the callout bubble's primary title.
Example code — setTitle:
fun inputBubbleTitle(title: String): KNMapCalloutBubbleUpdate.Builder {
return KNMapCalloutBubbleUpdate.Builder().setTitle(title)
}fun setTitle( title: String ): BuilderParameters
| Name | Description |
|---|---|
title | Primary title to display |
setSubTitle
Sets the callout bubble's subtitle.
Example code — setSubTitle:
fun inputBubbleSubTitle(subTitle: String?, builder: KNMapCalloutBubbleUpdate.Builder): KNMapCalloutBubbleUpdate.Builder {
return builder.setSubTitle(subTitle)
}fun setSubTitle( title: String? ): BuilderParameters
| Name | Description |
|---|---|
title | Subtitle to display |
setTitleFont
Sets the font for the callout bubble's primary title.
Example code — setTitleFont:
fun inputBubbleTextFont(typeFace: TypeFace, builder: KNMapCalloutBubbleUpdate.Builder): KNMapCalloutBubbleUpdate.Builder {
return builder.setTitleFont(typeFace)
}fun setTitleFont( titleFont: Typeface ): BuilderParameters
| Name | Description |
|---|---|
titleFont | Font for the callout bubble's primary title |
setTitleTextSize
Sets the text size of the callout bubble's primary title.
Example code — setTitleTextSize:
fun inputBubbleTitleTextSize(textSize: Float, builder: KNMapCalloutBubbleUpdate.Builder): KNMapCalloutBubbleUpdate.Builder {
return builder.setTitleTextSize(textSize)
}fun setTitleTextSize( titleTextSize: Float ): BuilderParameters
| Name | Description |
|---|---|
titleTextSize | Text size of the callout bubble's primary title |
setSubTitleTextSize
Sets the text size of the callout bubble's subtitle.
Example code — setSubTitleTextSize:
fun inputBubbleSubTitleTextSize(subTextSize: Float, builder: KNMapCalloutBubbleUpdate.Builder): KNMapCalloutBubbleUpdate.Builder {
return builder.setSubTitleTextSize(subTextSize)
}fun setSubTitleTextSize( subTitleTextSize: Float ): BuilderParameters
| Name | Description |
|---|---|
subTitleTextSize | Text size of the callout bubble's subtitle |
setTitleFontColor
Sets the text color of the callout bubble's primary title.
Example code — setTitleFontColor:
fun inputBubbleTitleTextColor(titleColor: Int, builder: KNMapCalloutBubbleUpdate.Builder): KNMapCalloutBubbleUpdate.Builder {
return builder.setTitleFontColor(titleColor)
}fun setTitleFontColor( titleFontColor: Int ): BuilderParameters
| Name | Description |
|---|---|
titleFontColor | Text color of the callout bubble's primary title |
setSubTitleFontColor
Sets the text color of the callout bubble's subtitle.
Example code — setSubTitleFontColor:
fun inputBubbleSubTitleTextColor(subTitleColor: Int, builder: KNMapCalloutBubbleUpdate.Builder): KNMapCalloutBubbleUpdate.Builder {
return builder.setSubTitleFontColor(subTitleColor)
}fun setSubTitleFontColor( subTitleFontColor: Int ): BuilderParameters
| Name | Description |
|---|---|
subTitleFontColor | Text color of the callout bubble's subtitle |