setMaxWidthRatio

fun setMaxWidthRatio(@FloatRange(from = 0.0, to = 1.0) value: Float): Balloon.Builder

sets the maximum width size by the display screen size ratio.