Exemple #1
0
 public TextInputConfiguration(
     TextInputType inputType               = null,
     bool obscureText                      = false,
     bool autocorrect                      = true,
     SmartDashesType?smartDashesType       = null,
     SmartQuotesType?smartQuotesType       = null,
     bool enableSuggestions                = true,
     string actionLabel                    = null,
     TextInputAction inputAction           = TextInputAction.done,
     ui.Brightness keyboardAppearance      = ui.Brightness.light,
     TextCapitalization textCapitalization = TextCapitalization.none,
     bool unityTouchKeyboard               = false
     )
 {
     D.assert(inputType != null);
     this.smartDashesType =
         smartDashesType ?? (obscureText ? SmartDashesType.disabled : SmartDashesType.enabled);
     this.smartQuotesType =
         smartQuotesType ?? (obscureText ? SmartQuotesType.disabled : SmartQuotesType.enabled);
     this.inputType          = inputType ?? TextInputType.text;
     this.obscureText        = obscureText;
     this.autocorrect        = autocorrect;
     this.enableSuggestions  = enableSuggestions;
     this.actionLabel        = actionLabel ?? "";
     this.inputAction        = inputAction;
     this.textCapitalization = textCapitalization;
     this.keyboardAppearance = keyboardAppearance;
     this.unityTouchKeyboard = unityTouchKeyboard;
 }
Exemple #2
0
 public TextInputConfiguration(TextInputType inputType = null,
                               bool obscureText        = false, bool autocorrect = true, TextInputAction inputAction = TextInputAction.done)
 {
     this.inputType   = inputType ?? TextInputType.text;
     this.inputAction = inputAction;
     this.obscureText = obscureText;
     this.autocorrect = autocorrect;
 }
Exemple #3
0
 public TextInputConfiguration(TextInputType inputType       = null,
                               bool obscureText              = false, bool autocorrect = true, TextInputAction inputAction = TextInputAction.done,
                               Brightness keyboardAppearance = Brightness.light, TextCapitalization textCapitalization = TextCapitalization.none,
                               bool unityTouchKeyboard       = false)
 {
     this.inputType          = inputType ?? TextInputType.text;
     this.inputAction        = inputAction;
     this.obscureText        = obscureText;
     this.autocorrect        = autocorrect;
     this.textCapitalization = textCapitalization;
     this.keyboardAppearance = keyboardAppearance;
     this.unityTouchKeyboard = unityTouchKeyboard;
 }