Language

RangingSessionCallbackReason Enum

Definition

public enum RangingSessionCallbackReason
type RangingSessionCallbackReason = 
Inheritance
RangingSessionCallbackReason

Fields

Name Value Description
Unknown 0

Indicates that the session was closed due to an unknown reason.

Android reference for android.ranging.RangingSession.Callback.REASON_UNKNOWN.

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.

LocalRequest 1

Indicates that the session was closed because AutoCloseable.close() or RangingSession.stop() was called.

Android reference for android.ranging.RangingSession.Callback.REASON_LOCAL_REQUEST.

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.

RemoteRequest 2

Indicates that the session was closed at the request of a remote peer.

Android reference for android.ranging.RangingSession.Callback.REASON_REMOTE_REQUEST.

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.

Unsupported 3

Indicates that the session closed because the provided session parameters were not supported.

Android reference for android.ranging.RangingSession.Callback.REASON_UNSUPPORTED.

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.

SystemPolicy 4

Indicates that the local system policy forced the session to close, such as power management policy, airplane mode etc.

Android reference for android.ranging.RangingSession.Callback.REASON_SYSTEM_POLICY.

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.

NoPeersFound 5

Indicates that the session was closed because none of the specified peers were found.

Android reference for android.ranging.RangingSession.Callback.REASON_NO_PEERS_FOUND.

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.

Applies to