RangingConfig


abstract class RangingConfig : Parcelable
OobInitiatorRangingConfig

Represents the configuration for an Out-of-Band (OOB) initiator in a ranging session.

OobResponderRangingConfig

Represents the configuration for an Out-of-Band (OOB) responder in a ranging session.

RawInitiatorRangingConfig

Represents the configuration for initiating a raw ranging session.

RawResponderRangingConfig

Represents the configuration for a raw ranging session initiated by a responder device.

Abstract class to represent type of ranging configuration.

Subclasses include:

Summary

Constants
static Int

Ranging session with the out-of-band negotiations performed by the ranging API.

static Int

Ranging session with the out-of-band negotiations performed by the app.

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: 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.

Protected constructors

Public methods
open Int

Gets the ranging session type android.

open String

Inherited functions
Int describeContents()

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), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Unit writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Constants

RANGING_SESSION_OOB

static val RANGING_SESSION_OOB: Int

Ranging session with the out-of-band negotiations performed by the ranging API.

Value: 1

RANGING_SESSION_RAW

static val RANGING_SESSION_RAW: Int

Ranging session with the out-of-band negotiations performed by the app.

Value: 0

Protected constructors

RangingConfig

protected RangingConfig()

Public methods

getRangingSessionType

open fun getRangingSessionType(): Int

Gets the ranging session type android.ranging.RangingConfig.RangingSessionType

Return
Int the type of ranging session.

toString

open fun toString(): String
Return
String a string representation of the object.