draw Text
fun drawText(uiElement: UIElement, font: Font, x: Float, y: Float, text: String, alignment: Align = Align.left): Boolean
Instruct the SDK to draw on the glasses a text.
Return
true if the given information is valid
Parameters
ui Element
the UIKit.widgets.Text ui element (or a custom control)
font
the font information @see Font
x
the x location of the text according to the selected alignment
y
the y location of the text according to the selected alignment
text
the required text
alignment
the text alignment @see Align
fun drawText(uiElement: UIElement, font: Font, x: Float, y: Float, textBytes: ByteArray, alignment: Align = Align.left): Boolean
Instruct the SDK to draw on the glasses a text.
Return
true if the given information is valid
Parameters
ui Element
the UIKit.widgets.Text ui element (or a custom control)
font
the font information @see Font
x
the x location of the text according to the selected alignment
y
the y location of the text according to the selected alignment
text Bytes
encoded UTF-8 text
alignment
the text alignment @see Align