Share via


CharSequenceTransformation 类

定义

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

[Android.Runtime.Register("android/service/autofill/CharSequenceTransformation", ApiSince=27, DoNotGenerateAcw=true)]
public sealed class CharSequenceTransformation : Java.Lang.Object, Android.OS.IParcelable, Android.Service.Autofill.ITransformation, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/service/autofill/CharSequenceTransformation", ApiSince=27, DoNotGenerateAcw=true)>]
type CharSequenceTransformation = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ITransformation
继承
CharSequenceTransformation
属性
实现

注解

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

当它包含多个字段时,匹配其正则表达式的字段将添加到整体转换结果中。

例如,将仅一个字段中包含的额度卡数字的转换设置为:

new CharSequenceTransformation
                .Builder(ccNumberId, Pattern.compile("^.*(\\d\\d\\d\\d)$"), "...$1")
                .build();

但是,从两个 Exp: MM / YYYY 字段生成信用到期日期的转换 (月份和年份) 将是:

new CharSequenceTransformation
              .Builder(ccExpMonthId, Pattern.compile("^(\\d\\d)$"), "Exp: $1")
              .addField(ccExpYearId, Pattern.compile("^(\\d\\d\\d\\d)$"), " / $1");

android.service.autofill.CharSequenceTransformationJava 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Creator

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
JniPeerMembers

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

PeerReference

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

(继承自 Object)
ThresholdType

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

(继承自 Object)

方法

Clone()

创建并返回此对象的副本。

(继承自 Object)
DescribeContents()

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

Dispose()

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
Dispose(Boolean)

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
Equals(Object)

指示其他某个对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

当垃圾回收确定不再引用对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
ToArray<T>()

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
Wait()

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>。<>

(继承自 Object)
Wait(Int64)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)
Wait(Int64, Int32)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

显式接口实现

IJavaPeerable.Disposed()

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
IJavaPeerable.Finalized()

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

GetJniTypeName(IJavaPeerable)

TextView 的子元素 CustomDescription 替换为一个或多个正则表达式的内容, (正则表达式) 。

适用于