PhoneStateListener.OnRegistrationFailed 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
报告注册或位置/路由/跟踪区域更新失败。
[Android.Runtime.Register("onRegistrationFailed", "(Landroid/telephony/CellIdentity;Ljava/lang/String;III)V", "GetOnRegistrationFailed_Landroid_telephony_CellIdentity_Ljava_lang_String_IIIHandler", ApiSince=30)]
public virtual void OnRegistrationFailed(Android.Telephony.CellIdentity cellIdentity, string chosenPlmn, int domain, int causeCode, int additionalCauseCode);
[<Android.Runtime.Register("onRegistrationFailed", "(Landroid/telephony/CellIdentity;Ljava/lang/String;III)V", "GetOnRegistrationFailed_Landroid_telephony_CellIdentity_Ljava_lang_String_IIIHandler", ApiSince=30)>]
abstract member OnRegistrationFailed : Android.Telephony.CellIdentity * string * int * int * int -> unit
override this.OnRegistrationFailed : Android.Telephony.CellIdentity * string * int * int * int -> unit
参数
- cellIdentity
- CellIdentity
CellIdentity,它必须包含单元格的全局唯一标识符(例如,CGI 或 ECGI 的所有组件)。
- chosenPlmn
- String
一个 5 或 6 位数字字母数字 PLMN (MCC|MNC),由为失败的注册尝试选择的单元格广播。
- domain
- Int32
在合并过程中,DOMAIN_CS、DOMAIN_PS或两者。
- causeCode
- Int32
主要失败导致过程代码。 对于 GSM/UMTS(MM),值为 TS 24.008 秒 10.5.95 对于 GSM/UMTS(GMM),值为 TS 24.008 秒 10.5.147 FOR LTE(EMM),原因 代码是 TS 24.301 秒 9.9.3.9 对于 NR (5GMM),原因代码为 TS 24.501 秒 9.11.3.2 Integer.MAX_VALUE(如果此值未使用)。
- additionalCauseCode
- Int32
如果适用,则为任何辅助/组合过程的原因代码。 对于 UMTS,如果组合的附加仅成功用于 PS,则 GMM 原因代码应作为附加的CauseCode 包含在内。 对于 LTE (ESM),原因代码位于 TS 24.301 9.9.4.4 中。 如果此值未使用,Integer.MAX_VALUE。
- 属性
注解
报告注册或位置/路由/跟踪区域更新失败。
指示注册过程(包括位置、路由或跟踪区域更新)何时失败。 这包括不一定导致调制解调器注册状态更改的过程。 如果调制解调器的注册状态发生更改,则反映在 onNetworkStateChanged()和后续 get{Voice/Data}RegistrationState() 中。
由于注册失败是临时的,因此此回调并不粘滞。 注册时,注册者不会收到最近的过去值。
此成员已弃用。 请改用 TelephonyCallback.RegistrationFailedListener。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。