• О MapKit
    • Начало работы
  • Стили карты
  • Версии MapKit
  • Часто задаваемые вопросы
  • Обратная связь

Важно

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.road_events_layer

Class TextStyle

java.lang.Object
    ↳ com.yandex.mapkit.road_events_layer.TextStyle

class TextStyle implements Serializable

Summary

Constructors

Signature and Description

TextStyle()
Use constructor with parameters in your code.

TextStyle(float fontSize,
          int color,
          @Nullable java.lang.Integer outlineColor)

Methods

Type and modifiers

Method and Description

synchronized float

getFontSize()
Font size in device-independent pixels.

synchronized int

getColor()
Text primary color.

synchronized java.lang.Integer

getOutlineColor()
Text outline color.

void

serialize(com.yandex.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

TextStyle

TextStyle()

Use constructor with parameters in your code.

This one is for serialization only!


TextStyle

TextStyle(float fontSize,
          int color,
          @Nullable java.lang.Integer outlineColor)


Methods

getFontSize

float getFontSize()

Font size in device-independent pixels.


getColor

int getColor()

Text primary color.


getOutlineColor

@Nullable
java.lang.Integer getOutlineColor()

Text outline color.

Optional field, can be null.


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()


Предыдущая
Следующая