DigitsKeyListener.GetInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetInstance(Locale) |
Returns a DigitsKeyListener that accepts the locale-appropriate digits. |
GetInstance(String) |
Returns a DigitsKeyListener that accepts only the characters that appear in the specified String. |
GetInstance(Boolean, Boolean) |
Returns a DigitsKeyListener that accepts the ASCII digits 0 through 9, plus the ASCII plus or minus sign (only at the beginning) and/or the ASCII period ('. |
GetInstance(Locale, Boolean, Boolean) |
Returns a DigitsKeyListener that accepts the locale-appropriate digits, plus the locale-appropriate plus or minus sign (only at the beginning) and/or the locale-appropriate decimal separator (only one per field) if specified. |
GetInstance(Locale)
Returns a DigitsKeyListener that accepts the locale-appropriate digits.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/text/method/DigitsKeyListener;", "", ApiSince=26)]
public static Android.Text.Method.DigitsKeyListener GetInstance (Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/text/method/DigitsKeyListener;", "", ApiSince=26)>]
static member GetInstance : Java.Util.Locale -> Android.Text.Method.DigitsKeyListener
Parameters
- locale
- Locale
Returns
- Attributes
Remarks
Returns a DigitsKeyListener that accepts the locale-appropriate digits.
Java documentation for android.text.method.DigitsKeyListener.getInstance(java.util.Locale)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GetInstance(String)
Returns a DigitsKeyListener that accepts only the characters that appear in the specified String.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/text/method/DigitsKeyListener;", "")]
public static Android.Text.Method.DigitsKeyListener GetInstance (string accepted);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/text/method/DigitsKeyListener;", "")>]
static member GetInstance : string -> Android.Text.Method.DigitsKeyListener
Parameters
- accepted
- String
Returns
- Attributes
Remarks
Returns a DigitsKeyListener that accepts only the characters that appear in the specified String. Note that not all characters may be available on every keyboard.
Java documentation for android.text.method.DigitsKeyListener.getInstance(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GetInstance(Boolean, Boolean)
Returns a DigitsKeyListener that accepts the ASCII digits 0 through 9, plus the ASCII plus or minus sign (only at the beginning) and/or the ASCII period ('.
[Android.Runtime.Register("getInstance", "(ZZ)Landroid/text/method/DigitsKeyListener;", "")]
public static Android.Text.Method.DigitsKeyListener GetInstance (bool sign, bool decimal);
[<Android.Runtime.Register("getInstance", "(ZZ)Landroid/text/method/DigitsKeyListener;", "")>]
static member GetInstance : bool * bool -> Android.Text.Method.DigitsKeyListener
Parameters
- sign
- Boolean
- decimal
- Boolean
Returns
- Attributes
Remarks
Returns a DigitsKeyListener that accepts the ASCII digits 0 through 9, plus the ASCII plus or minus sign (only at the beginning) and/or the ASCII period ('.') as the decimal point (only one per field) if specified.
This member is deprecated. Use #getInstance(Locale, boolean, boolean)
instead.
Java documentation for android.text.method.DigitsKeyListener.getInstance(boolean, boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GetInstance(Locale, Boolean, Boolean)
Returns a DigitsKeyListener that accepts the locale-appropriate digits, plus the locale-appropriate plus or minus sign (only at the beginning) and/or the locale-appropriate decimal separator (only one per field) if specified.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;ZZ)Landroid/text/method/DigitsKeyListener;", "", ApiSince=26)]
public static Android.Text.Method.DigitsKeyListener GetInstance (Java.Util.Locale? locale, bool sign, bool decimal);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;ZZ)Landroid/text/method/DigitsKeyListener;", "", ApiSince=26)>]
static member GetInstance : Java.Util.Locale * bool * bool -> Android.Text.Method.DigitsKeyListener
Parameters
- locale
- Locale
- sign
- Boolean
- decimal
- Boolean
Returns
- Attributes
Remarks
Returns a DigitsKeyListener that accepts the locale-appropriate digits, plus the locale-appropriate plus or minus sign (only at the beginning) and/or the locale-appropriate decimal separator (only one per field) if specified.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.