Added in API level 28

RadioAccessSpecifier


class RadioAccessSpecifier : Parcelable
kotlin.Any
   ↳ android.telephony.RadioAccessSpecifier

Describes a particular radio access network to be scanned. The scan can be performed on either bands or channels for a specific radio access network type.

Summary

Inherited constants
Public constructors
RadioAccessSpecifier(ran: Int, bands: IntArray!, channels: IntArray!)

Creates a new RadioAccessSpecifier with radio network, bands and channels The user must specify the radio network type, and at least specify either of frequency bands or channels.

Public methods
Int

Boolean
equals(other: Any?)

IntArray!

Returns the frequency bands that need to be scanned.

IntArray!

Returns the frequency channels that need to be scanned.

Int

Returns the radio access network that needs to be scanned.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties
static Parcelable.Creator<RadioAccessSpecifier!>

Public constructors

RadioAccessSpecifier

Added in API level 28
RadioAccessSpecifier(
    ran: Int,
    bands: IntArray!,
    channels: IntArray!)

Creates a new RadioAccessSpecifier with radio network, bands and channels The user must specify the radio network type, and at least specify either of frequency bands or channels.

Parameters
ran Int: The type of the radio access network
bands IntArray!: the frequency bands to be scanned
channels IntArray!: the frequency bands to be scanned

Public methods

describeContents

Added in API level 28
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 28
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.

getBands

Added in API level 28
fun getBands(): IntArray!

Returns the frequency bands that need to be scanned. The returned value is defined in either of AccessNetworkConstants.GeranBand, AccessNetworkConstants.UtranBand, AccessNetworkConstants.EutranBand, and AccessNetworkConstants.NgranBands, and it depends on the returned value of getRadioAccessNetwork().

getChannels

Added in API level 28
fun getChannels(): IntArray!

Returns the frequency channels that need to be scanned.

getRadioAccessNetwork

Added in API level 28
fun getRadioAccessNetwork(): Int

Returns the radio access network that needs to be scanned. The returned value is define in AccessNetworkConstants.AccessNetworkType;

hashCode

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

toString

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

writeToParcel

Added in API level 28
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit
Parameters
dest Parcel: The Parcel in which the object should be written. 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 28
static val CREATOR: Parcelable.Creator<RadioAccessSpecifier!>