TelephonyManager.CellInfoCallback.OnCellInfo(IList<CellInfo>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
成功响应 。android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()
[Android.Runtime.Register("onCellInfo", "(Ljava/util/List;)V", "GetOnCellInfo_Ljava_util_List_Handler", ApiSince=29)]
public abstract void OnCellInfo (System.Collections.Generic.IList<Android.Telephony.CellInfo> cellInfo);
[<Android.Runtime.Register("onCellInfo", "(Ljava/util/List;)V", "GetOnCellInfo_Ljava_util_List_Handler", ApiSince=29)>]
abstract member OnCellInfo : System.Collections.Generic.IList<Android.Telephony.CellInfo> -> unit
参数
列表 CellInfo
或空列表。
<code data-dev-comment-type="c">android.telephony.TelephonyManager#getAllCellInfo getAllCellInfo()</code>
- 属性
注解
成功响应 。android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()
当有要提供列表的CellInfo
响应android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()
时调用 。 CellInfo
如果没有可用,则会提供空列表。 如果发生错误,除非重写 onError 回调,否则将提供 null。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。