PhoneNumberFormattingTextWatcher 类

定义

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

[Android.Runtime.Register("android/telephony/PhoneNumberFormattingTextWatcher", DoNotGenerateAcw=true)]
public class PhoneNumberFormattingTextWatcher : Java.Lang.Object, Android.Text.ITextWatcher, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/telephony/PhoneNumberFormattingTextWatcher", DoNotGenerateAcw=true)>]
type PhoneNumberFormattingTextWatcher = class
    inherit Object
    interface ITextWatcher
    interface INoCopySpan
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
继承
PhoneNumberFormattingTextWatcher
属性
实现

注解

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

当用户 ul>li Inputs 不可拨号字符</li li><>删除字符串中间的分隔符时停止格式设置。<><</li></ul>

清除文本后,格式将重新启动。

适用于 . 的 android.telephony.PhoneNumberFormattingTextWatcherJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

构造函数

PhoneNumberFormattingTextWatcher()

格式设置基于当前系统区域设置,将来的区域设置更改可能不会对此实例生效。

PhoneNumberFormattingTextWatcher(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

PhoneNumberFormattingTextWatcher(String)

格式设置基于给定 countryCode的 。

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
JniPeerMembers

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

PeerReference

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
ThresholdClass

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

ThresholdType

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

方法

AfterTextChanged(IEditable)

调用此方法以通知你,其中某个位置 s已更改文本。

BeforeTextChanged(ICharSequence, Int32, Int32, Int32)

调用此方法以通知你,在内s,开头startcount字符即将替换为长度after的新文本。

BeforeTextChanged(String, Int32, Int32, Int32)

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

Clone()

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

(继承自 Object)
Dispose()

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
Dispose(Boolean)

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
Equals(Object)

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

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

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

(继承自 Object)
Notify()

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

(继承自 Object)
NotifyAll()

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

(继承自 Object)
OnTextChanged(ICharSequence, Int32, Int32, Int32)

调用此方法以通知你,在内s,开头startcount字符刚刚替换了长度为的before旧文本。

OnTextChanged(String, Int32, Int32, Int32)

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

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

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
ToString()

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

(继承自 Object)
UnregisterFromRuntime()

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 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)

显式接口实现

IJavaPeerable.Disposed()

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
IJavaPeerable.Finalized()

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

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

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

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

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

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

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

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

BeforeTextChanged(ITextWatcher, String, Int32, Int32, Int32)

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

OnTextChanged(ITextWatcher, String, Int32, Int32, Int32)

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

JavaCast<TResult>(IJavaObject)

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

GetJniTypeName(IJavaPeerable)

监视输入 android.widget.TextView 的电话号码是否将设置其格式。

适用于