TelephonyManager.CellInfoCallback.OnCellInfo(IList<CellInfo>) 方法

定义

成功响应 。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
IList<CellInfo>

列表 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.telephony.TelephonyManager.CellInfoCallback.onCellInfo(java.util.List<android.telephony.CellInfo>)Java 文档

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

适用于