語言

NetworkScanRequest 建構函式

定義

建立一個新的 NetworkScanRequest,包含 mScanType 和網路 mSpecifiers

[Android.Runtime.Register(".ctor", "(I[Landroid/telephony/RadioAccessSpecifier;IIZILjava/util/ArrayList;)V", "", ApiSince=28)]
public NetworkScanRequest(Android.Telephony.NetworkScanType scanType, Android.Telephony.RadioAccessSpecifier[]? specifiers, int searchPeriodicity, int maxSearchTime, bool incrementalResults, int incrementalResultsPeriodicity, System.Collections.Generic.IList<string>? mccMncs);
[<Android.Runtime.Register(".ctor", "(I[Landroid/telephony/RadioAccessSpecifier;IIZILjava/util/ArrayList;)V", "", ApiSince=28)>]
new Android.Telephony.NetworkScanRequest : Android.Telephony.NetworkScanType * Android.Telephony.RadioAccessSpecifier[] * int * int * bool * int * System.Collections.Generic.IList<string> -> Android.Telephony.NetworkScanRequest

參數

scanType
NetworkScanType

掃描的類型可以是單次掃描或週期性

specifiers
RadioAccessSpecifier[]

包含待掃描頻段/頻道的無線電網路

searchPeriodicity
Int32

如果找不到網路,數據機會每隔幾秒重啟掃描,直到達到最大搜尋時間。 只有在掃描類型是週期性掃描時才有效。

maxSearchTime
Int32

搜尋最長持續時間(以秒計)

incrementalResults
Boolean

指示數據機是否應向用戶端回報網路掃描的增量結果

incrementalResultsPeriodicity
Int32

表示數據機應以秒數計的週期性回報增量結果,僅在 IncrementalResults 為真時有效

mccMncs
IList<String>

描述PLMN ID清單(MCC-MNC),一旦找到列表中任何網路,數據機將終止掃描。

屬性

備註

建立一個新的 NetworkScanRequest,包含 mScanType 和網路 mSpecifiers

Java 文件 android.telephony.NetworkScanRequest.NetworkScanRequest(int, android.telephony.RadioAccessSpecifier[], int, int, boolean, int, java.util.ArrayList<java.lang.String>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於