共用方式為


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()

當有回應 android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate() 提供的清單 CellInfo時叫用。 CellInfo如果沒有可用,則會提供空白清單。 如果發生錯誤,除非覆寫 onError 回呼,否則會提供 null。

android.telephony.TelephonyManager.CellInfoCallback.onCellInfo(java.util.List<android.telephony.CellInfo>)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於