DeviceLostReason


public final class DeviceLostReason


Specifies the reason why a device was lost.

Summary

Constants

static final int

Indicates the device lost callback was cancelled.

static final int

The device was explicitly destroyed.

static final int

The device failed to be created.

static final int

The reason for the device loss is unknown.

Public methods

static final @NonNull String
toString(int value)

Constants

CallbackCancelled

public static final int CallbackCancelled = 3

Indicates the device lost callback was cancelled. This happens if the callback is replaced or unset, or if the device is destroyed cleanly without a specific error.

Destroyed

public static final int Destroyed = 2

The device was explicitly destroyed.

FailedCreation

public static final int FailedCreation = 4

The device failed to be created.

Unknown

public static final int Unknown = 1

The reason for the device loss is unknown.

Public methods

toString

Added in 1.0.0-alpha05
public static final @NonNull String toString(int value)