語言

RegexValidator(AutofillId, Pattern) 建構函式

定義

預設建構函式。

[Android.Runtime.Register(".ctor", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;)V", "", ApiSince=27)]
public RegexValidator(Android.Views.Autofill.AutofillId id, Java.Util.Regex.Pattern regex);
[<Android.Runtime.Register(".ctor", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;)V", "", ApiSince=27)>]
new Android.Service.Autofill.RegexValidator : Android.Views.Autofill.AutofillId * Java.Util.Regex.Pattern -> Android.Service.Autofill.RegexValidator

參數

id
AutofillId

該欄位的 ID,該欄位的正則表達式被套用。

regex
Pattern

定義驗證子結果的正則表達式:若正則表達式與由 id識別的欄位內容相符,則回傳 true;否則,回傳 false。

屬性

備註

預設建構函式。

Java 文件 android.service.autofill.RegexValidator.RegexValidator(android.view.autofill.AutofillId, java.util.regex.Pattern)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於