Google is committed to advancing racial equity for Black communities. See how.
Added in API level 30

TelephonyNetworkSpecifier

class TelephonyNetworkSpecifier : NetworkSpecifier, Parcelable
kotlin.Any
   ↳ android.net.NetworkSpecifier
   ↳ android.net.TelephonyNetworkSpecifier

NetworkSpecifier object for cellular network request. Apps should use the TelephonyNetworkSpecifier.Builder class to create an instance.

Summary

Nested classes

Builder to create TelephonyNetworkSpecifier object.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Return the subscription Id of current TelephonyNetworkSpecifier object.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<TelephonyNetworkSpecifier!>

Public methods

describeContents

Added in API level 30
fun describeContents(): Int
Return
Int 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

equals

Added in API level 30
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getSubscriptionId

Added in API level 30
fun getSubscriptionId(): Int

Return the subscription Id of current TelephonyNetworkSpecifier object.

Return
Int The subscription id.

hashCode

Added in API level 30
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 30
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 30
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 30
static val CREATOR: Parcelable.Creator<TelephonyNetworkSpecifier!>