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()
。
當有回應 android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()
提供的清單 CellInfo
時叫用。 CellInfo
如果沒有可用,則會提供空白清單。 如果發生錯誤,除非覆寫 onError 回呼,否則會提供 null。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。