VgsPasswordVisualTransformation

class VgsPasswordVisualTransformation(val passwordChar: Char = DEFAULT_PASSWORD_MASK_CHAR, val range: IntRange = IntRange(0, Int.MAX_VALUE)) : VgsVisualTransformation

Visual transformation that hides each input character behind a mask glyph.

Use it on sensitive fields where the value should not be visible while typing. The mask is purely visual — the value submitted to VGS is the raw input.

Parameters

passwordChar

character drawn in place of each input character. Defaults to the bullet •.

range

index range of characters to mask with passwordChar. For example, range = 0..11 on input "4111111111111111" displays "••••••••••••1111".

Constructors

Link copied to clipboard
constructor(passwordChar: Char = DEFAULT_PASSWORD_MASK_CHAR, range: IntRange = IntRange(0, Int.MAX_VALUE))

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun filter(text: AnnotatedString): TransformedText
Link copied to clipboard
open override fun hashCode(): Int