Language

RangingDeviceRole Enum

Definition

Specifies a device's role in a ranging session.

public enum RangingDeviceRole
type RangingDeviceRole = 
Inheritance
RangingDeviceRole

Fields

Name Value Description
Responder 0

The device that responds to a session.

Android reference for android.ranging.RangingPreference.DEVICE_ROLE_RESPONDER.

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.

Initiator 1

The device that initiates the session.

Android reference for android.ranging.RangingPreference.DEVICE_ROLE_INITIATOR.

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.

DeviceRoleDtTag 2

The device that is a DT tag.

This is only allowed in the RAW API usage.

Android reference for android.ranging.RangingPreference.DEVICE_ROLE_DT_TAG.

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.

Remarks

An initiator starts the session, while a responder responds to it. The downlink time-difference-of-arrival tag role is available only with raw ranging configurations.

Applies to