Share via


View.AutofillHintCreditCardExpirationMonth Field

Definition

Hint indicating that this view can be autofilled with a credit card expiration month.

[Android.Runtime.Register("AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH", ApiSince=26)]
public const string AutofillHintCreditCardExpirationMonth;
[<Android.Runtime.Register("AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH", ApiSince=26)>]
val mutable AutofillHintCreditCardExpirationMonth : string

Field Value

Attributes

Remarks

Hint indicating that this view can be autofilled with a credit card expiration month.

Can be used with either #setAutofillHints(String[]) or <c>android:autofillHint</c> (in which case the value should be {@value #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH}).

When annotating a view with this hint, it's recommended to use a text autofill value whose value is the numerical representation of the month, starting on 1 to avoid ambiguity when the autofill service provides a value for it. To understand why a value can be ambiguous, consider "January", which could be represented as either of

<ul> <li>"1": recommended way. <li>"0": if following the Calendar#MONTH convention. <li>"January": full name, in English. <li>"jan": abbreviated name, in English. <li>"Janeiro": full name, in another language. </ul>

Another recommended approach is to use a date autofill value - see #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE for more details.

See #setAutofillHints(String...) for more info about autofill hints.

Java documentation for android.view.View.AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH.

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