# ConnectivityDiagnosticsManager.ConnectivityReport

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ConnectivityReport

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/net/ConnectivityDiagnosticsManager.ConnectivityReport "View this page in Java")  

```
class ConnectivityReport : Parcelable
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                 ||
| ↳ | [android.net.ConnectivityDiagnosticsManager.ConnectivityReport](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#) |

Class that includes connectivity information for a specific Network at a specific time.

## Summary

|                                                                                                                                                                                                                                           Constants                                                                                                                                                                                                                                            ||
|----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY_NETWORK_PROBES_ATTEMPTED_BITMASK](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#KEY_NETWORK_PROBES_ATTEMPTED_BITMASK:kotlin.String) A bitmask of network validation probes that were attempted.                                                                                                                                    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY_NETWORK_PROBES_SUCCEEDED_BITMASK](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#KEY_NETWORK_PROBES_SUCCEEDED_BITMASK:kotlin.String) A bitmask of network validation probes that succeeded.                                                                                                                                         |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY_NETWORK_VALIDATION_RESULT](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#KEY_NETWORK_VALIDATION_RESULT:kotlin.String) The overall validation result for the Network being reported on.                                                                                                                                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_PROBE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_DNS:kotlin.Int) DNS probe.                                                                                                                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_PROBE_FALLBACK](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_FALLBACK:kotlin.Int) Captive portal fallback probe.                                                                                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_PROBE_HTTP](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTP:kotlin.Int) HTTP probe.                                                                                                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_PROBE_HTTPS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTPS:kotlin.Int) HTTPS probe.                                                                                                                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_PROBE_PRIVATE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_PRIVATE_DNS:kotlin.Int) Private DNS (DNS over TLS) probd.                                                                                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_VALIDATION_RESULT_INVALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_INVALID:kotlin.Int) The overall status of the network is that it is invalid; it neither provides connectivity nor has been exempted from validation.                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_VALIDATION_RESULT_PARTIALLY_VALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_PARTIALLY_VALID:kotlin.Int) The overall status of the network is that it provides partial connectivity; some probed services succeeded but others failed.                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_VALIDATION_RESULT_SKIPPED](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_SKIPPED:kotlin.Int) Due to the properties of the network, validation was not performed.                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NETWORK_VALIDATION_RESULT_VALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_VALID:kotlin.Int) The overall status of the network is that it is valid, this may be because it provides full Internet access (all probes succeeded), or because other properties of the network caused probes not to be run. |

| Inherited constants ||
|---|---|
| From class[Parcelable](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#) |----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) <br /> Descriptor bit used with[describeContents()](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor. <br />                                                                                                                                                                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int) <br /> Flag for use with[writeToParcel](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". Some implementations may want to release resources at this point. <br /> | ||

|                                                                                                                                                                                                                                                                                                                                                                                                                                               Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ConnectivityReport](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#ConnectivityReport(android.net.Network,%20kotlin.Long,%20android.net.LinkProperties,%20android.net.NetworkCapabilities,%20android.os.PersistableBundle))`(`network:` `[Network](https://developer.android.com/reference/kotlin/android/net/Network)`, `reportTimestamp:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `linkProperties:` `[LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties)`, `networkCapabilities:` `[NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities)`, `additionalInfo:` `[PersistableBundle](https://developer.android.com/reference/kotlin/android/os/PersistableBundle.html#)`)` Constructor for ConnectivityReport. |

|                                                                                                                                                                                                                                                Public methods                                                                                                                                                                                                                                                 ||
|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                             | [describeContents](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#describeContents())`()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                                                                                                                       |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                     | [equals](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Indicates whether some other object is "equal to" this one.                                                                                                       |
| [PersistableBundle](https://developer.android.com/reference/kotlin/android/os/PersistableBundle.html#) | [getAdditionalInfo](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#getAdditionalInfo())`()` Returns a PersistableBundle with additional info for this report.                                                                                                                                                                           |
| [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties)            | [getLinkProperties](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#getLinkProperties())`()` Returns the LinkProperties available when this report was taken.                                                                                                                                                                            |
| [Network](https://developer.android.com/reference/kotlin/android/net/Network)                          | [getNetwork](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#getNetwork())`()` Returns the Network for this ConnectivityReport.                                                                                                                                                                                                          |
| [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities)  | [getNetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#getNetworkCapabilities())`()` Returns the NetworkCapabilities when this report was taken.                                                                                                                                                                       |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)                           | [getReportTimestamp](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#getReportTimestamp())`()` Returns the epoch timestamp (milliseconds) for when this report was taken.                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                             | [hashCode](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#hashCode())`()` <br />                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                           | [writeToParcel](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Flatten this object in to a Parcel. |

|                                                                                                                                                                                                                                       Properties                                                                                                                                                                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Parcelable.Creator](https://developer.android.com/reference/kotlin/android/os/Parcelable.Creator.html#)\<[ConnectivityDiagnosticsManager.ConnectivityReport](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#)!\> | [CREATOR](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#CREATOR:android.os.Parcelable.Creator) Implement the Parcelable interface |

## Constants

### KEY_NETWORK_PROBES_ATTEMPTED_BITMASK

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val KEY_NETWORK_PROBES_ATTEMPTED_BITMASK: String
```

A bitmask of network validation probes that were attempted.

These probes may have failed or may be incomplete at the time of this report.

The possible bits values reported by this key are:[NETWORK_PROBE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_DNS:kotlin.Int),[NETWORK_PROBE_HTTP](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTP:kotlin.Int),[NETWORK_PROBE_HTTPS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTPS:kotlin.Int),[NETWORK_PROBE_FALLBACK](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_FALLBACK:kotlin.Int),[NETWORK_PROBE_PRIVATE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_PRIVATE_DNS:kotlin.Int).  
Value is[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_DNS:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTP](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTP:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTPS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTPS:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_FALLBACK](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_FALLBACK:kotlin.Int), or[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_PRIVATE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_PRIVATE_DNS:kotlin.Int)  

    Value: "networkProbesAttempted"

### KEY_NETWORK_PROBES_SUCCEEDED_BITMASK

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val KEY_NETWORK_PROBES_SUCCEEDED_BITMASK: String
```

A bitmask of network validation probes that succeeded.

The possible bits values reported by this key are:[NETWORK_PROBE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_DNS:kotlin.Int),[NETWORK_PROBE_HTTP](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTP:kotlin.Int),[NETWORK_PROBE_HTTPS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTPS:kotlin.Int),[NETWORK_PROBE_FALLBACK](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_FALLBACK:kotlin.Int),[NETWORK_PROBE_PRIVATE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_PRIVATE_DNS:kotlin.Int).  
Value is[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_DNS:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTP](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTP:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTPS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_HTTPS:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_FALLBACK](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_FALLBACK:kotlin.Int), or[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_PRIVATE_DNS](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_PROBE_PRIVATE_DNS:kotlin.Int)  

    Value: "networkProbesSucceeded"

### KEY_NETWORK_VALIDATION_RESULT

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val KEY_NETWORK_VALIDATION_RESULT: String
```

The overall validation result for the Network being reported on.

The possible values for this key are:[NETWORK_VALIDATION_RESULT_INVALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_INVALID:kotlin.Int),[NETWORK_VALIDATION_RESULT_VALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_VALID:kotlin.Int),[NETWORK_VALIDATION_RESULT_PARTIALLY_VALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_PARTIALLY_VALID:kotlin.Int),[NETWORK_VALIDATION_RESULT_SKIPPED](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_SKIPPED:kotlin.Int).  
Value is[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_INVALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_INVALID:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_VALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_VALID:kotlin.Int),[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_PARTIALLY_VALID](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_PARTIALLY_VALID:kotlin.Int), or[android.net.ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_SKIPPED](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityReport#NETWORK_VALIDATION_RESULT_SKIPPED:kotlin.Int)  

    Value: "networkValidationResult"

**See Also**

- [android.net.NetworkCapabilities#NET_CAPABILITY_VALIDATED](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities#NET_CAPABILITY_VALIDATED:kotlin.Int)  

### NETWORK_PROBE_DNS

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_PROBE_DNS: Int
```

DNS probe.  

    Value: 4

### NETWORK_PROBE_FALLBACK

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_PROBE_FALLBACK: Int
```

Captive portal fallback probe.  

    Value: 32

### NETWORK_PROBE_HTTP

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_PROBE_HTTP: Int
```

HTTP probe.  

    Value: 8

### NETWORK_PROBE_HTTPS

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_PROBE_HTTPS: Int
```

HTTPS probe.  

    Value: 16

### NETWORK_PROBE_PRIVATE_DNS

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_PROBE_PRIVATE_DNS: Int
```

Private DNS (DNS over TLS) probd.  

    Value: 64

### NETWORK_VALIDATION_RESULT_INVALID

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_VALIDATION_RESULT_INVALID: Int
```

The overall status of the network is that it is invalid; it neither provides connectivity nor has been exempted from validation.  

    Value: 0

### NETWORK_VALIDATION_RESULT_PARTIALLY_VALID

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_VALIDATION_RESULT_PARTIALLY_VALID: Int
```

The overall status of the network is that it provides partial connectivity; some probed services succeeded but others failed.  

    Value: 2

### NETWORK_VALIDATION_RESULT_SKIPPED

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_VALIDATION_RESULT_SKIPPED: Int
```

Due to the properties of the network, validation was not performed.  

    Value: 3

### NETWORK_VALIDATION_RESULT_VALID

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NETWORK_VALIDATION_RESULT_VALID: Int
```

The overall status of the network is that it is valid, this may be because it provides full Internet access (all probes succeeded), or because other properties of the network caused probes not to be run.  

    Value: 1

## Public constructors

### ConnectivityReport

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
ConnectivityReport(
    network: Network, 
    reportTimestamp: Long, 
    linkProperties: LinkProperties, 
    networkCapabilities: NetworkCapabilities, 
    additionalInfo: PersistableBundle)
```

Constructor for ConnectivityReport.

Apps should obtain instances through[android.net.ConnectivityDiagnosticsManager.ConnectivityDiagnosticsCallback#onConnectivityReportAvailable](https://developer.android.com/reference/kotlin/android/net/ConnectivityDiagnosticsManager.ConnectivityDiagnosticsCallback#onConnectivityReportAvailable(android.net.ConnectivityDiagnosticsManager.ConnectivityReport))instead of instantiating their own instances (unless for testing purposes).

|                                                                                                           Parameters                                                                                                            ||
|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `network`             | [Network](https://developer.android.com/reference/kotlin/android/net/Network):The Network for which this ConnectivityReport applies This value cannot be`null`.                                          |
| `reportTimestamp`     | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):The timestamp for the report                                                                                                |
| `linkProperties`      | [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties):The LinkProperties available on network at reportTimestamp This value cannot be`null`.                       |
| `networkCapabilities` | [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities):The NetworkCapabilities available on network at reportTimestamp This value cannot be`null`.        |
| `additionalInfo`      | [PersistableBundle](https://developer.android.com/reference/kotlin/android/os/PersistableBundle.html#):A PersistableBundle that may contain additional info about the report This value cannot be`null`. |

## Public methods

### describeContents

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun describeContents(): Int
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of[writeToParcel(android.os.Parcel,int)](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)), the return value of this method must include the[CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int)bit.

|                                                                                                                                                                               Return                                                                                                                                                                               ||
|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either`0`or[android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) |

### equals

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun equals(other: Any?): Boolean
```

Indicates whether some other object is "equal to" this one.

The`equals`method implements an equivalence relation on non-null object references:

- It is*reflexive* : for any non-null reference value`x`,`x.equals(x)`should return`true`.
- It is*symmetric* : for any non-null reference values`x`and`y`,`x.equals(y)`should return`true`if and only if`y.equals(x)`returns`true`.
- It is*transitive* : for any non-null reference values`x`,`y`, and`z`, if`x.equals(y)`returns`true`and`y.equals(z)`returns`true`, then`x.equals(z)`should return`true`.
- It is*consistent* : for any non-null reference values`x`and`y`, multiple invocations of`x.equals(y)`consistently return`true`or consistently return`false`, provided no information used in`equals`comparisons on the objects is modified.
- For any non-null reference value`x`,`x.equals(null)`should return`false`.

An equivalence relation partitions the elements it operates on into*equivalence classes*; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |
| `o`   | This value may be`null`.                    |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### getAdditionalInfo

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getAdditionalInfo(): PersistableBundle
```

Returns a PersistableBundle with additional info for this report.

|                                                                                                 Return                                                                                                  ||
|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
| [PersistableBundle](https://developer.android.com/reference/kotlin/android/os/PersistableBundle.html#) | PersistableBundle that may contain additional info about the report This value cannot be`null`. |

### getLinkProperties

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getLinkProperties(): LinkProperties
```

Returns the LinkProperties available when this report was taken.

|                                                                                           Return                                                                                           ||
|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [LinkProperties](https://developer.android.com/reference/kotlin/android/net/LinkProperties) | LinkProperties available on the Network at the reported timestamp This value cannot be`null`. |

### getNetwork

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getNetwork(): Network
```

Returns the Network for this ConnectivityReport.

|                                                                              Return                                                                              ||
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
| [Network](https://developer.android.com/reference/kotlin/android/net/Network) | The Network for which this ConnectivityReport applied This value cannot be`null`. |

### getNetworkCapabilities

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getNetworkCapabilities(): NetworkCapabilities
```

Returns the NetworkCapabilities when this report was taken.

|                                                                                                  Return                                                                                                   ||
|-------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| [NetworkCapabilities](https://developer.android.com/reference/kotlin/android/net/NetworkCapabilities) | NetworkCapabilities available on the Network at the reported timestamp This value cannot be`null`. |

### getReportTimestamp

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getReportTimestamp(): Long
```

Returns the epoch timestamp (milliseconds) for when this report was taken.

|                                                                                                                   Return                                                                                                                    ||
|------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | The timestamp for the report. Taken from[System.currentTimeMillis](https://developer.android.com/reference/kotlin/java/lang/System.html#currentTimeMillis()). |

### hashCode

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun hashCode(): Int
```

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

### writeToParcel

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
```

Flatten this object in to a Parcel.

|                                                                                                                                                                                                                                                                                     Parameters                                                                                                                                                                                                                                                                                     ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dest`  | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#):This value cannot be`null`.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Additional flags about how the object should be written. May be 0 or[PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int). Value is either`0`or a combination of[android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int), and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |

## Properties

### CREATOR

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CREATOR: Parcelable.Creator<ConnectivityDiagnosticsManager.ConnectivityReport!>
```

Implement the Parcelable interface