Udostępnij za pośrednictwem


NetworkScanRequest Constructor

Definition

Creates a new NetworkScanRequest with mScanType and network 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

Parameters

scanType
NetworkScanType

The type of the scan, can be either one shot or periodic

specifiers
RadioAccessSpecifier[]

the radio network with bands / channels to be scanned

searchPeriodicity
Int32

The modem will restart the scan every searchPeriodicity seconds if no network has been found, until it reaches the maxSearchTime. Only valid when scan type is periodic scan.

maxSearchTime
Int32

Maximum duration of the search (in seconds)

incrementalResults
Boolean

Indicates whether the modem should report incremental results of the network scan to the client

incrementalResultsPeriodicity
Int32

Indicates the periodicity with which the modem should report incremental results to the client (in seconds), only valid when incrementalResults is true

mccMncs
IList<String>

Describes the list of PLMN ids (MCC-MNC), once any network in the list has been found, the scan will be terminated by the modem.

Attributes

Remarks

Creates a new NetworkScanRequest with mScanType and network mSpecifiers

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

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to