Freigeben über


ConnectivityDiagnosticsManager.ConnectivityReport Constructor

Definition

Constructor for ConnectivityReport.

[Android.Runtime.Register(".ctor", "(Landroid/net/Network;JLandroid/net/LinkProperties;Landroid/net/NetworkCapabilities;Landroid/os/PersistableBundle;)V", "", ApiSince=30)]
public ConnectivityReport (Android.Net.Network network, long reportTimestamp, Android.Net.LinkProperties linkProperties, Android.Net.NetworkCapabilities networkCapabilities, Android.OS.PersistableBundle additionalInfo);
[<Android.Runtime.Register(".ctor", "(Landroid/net/Network;JLandroid/net/LinkProperties;Landroid/net/NetworkCapabilities;Landroid/os/PersistableBundle;)V", "", ApiSince=30)>]
new Android.Net.ConnectivityDiagnosticsManager.ConnectivityReport : Android.Net.Network * int64 * Android.Net.LinkProperties * Android.Net.NetworkCapabilities * Android.OS.PersistableBundle -> Android.Net.ConnectivityDiagnosticsManager.ConnectivityReport

Parameters

network
Network

The Network for which this ConnectivityReport applies

reportTimestamp
Int64

The timestamp for the report

linkProperties
LinkProperties

The LinkProperties available on network at reportTimestamp

networkCapabilities
NetworkCapabilities

The NetworkCapabilities available on network at reportTimestamp

additionalInfo
PersistableBundle

A PersistableBundle that may contain additional info about the report

Attributes

Remarks

Constructor for ConnectivityReport.

Apps should obtain instances through ConnectivityDiagnosticsCallback#onConnectivityReportAvailable instead of instantiating their own instances (unless for testing purposes).

Java documentation for android.net.ConnectivityDiagnosticsManager.ConnectivityReport.ConnectivityDiagnosticsManager$ConnectivityReport(android.net.Network, long, android.net.LinkProperties, android.net.NetworkCapabilities, android.os.PersistableBundle).

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