DeviceLostReason


class DeviceLostReason


Specifies the reason why a device was lost.

Summary

Constants

const Int

Indicates the device lost callback was cancelled.

const Int

The device was explicitly destroyed.

const Int

The device failed to be created.

const Int

The reason for the device loss is unknown.

Public companion functions

String
toString(value: Int)

Constants

CallbackCancelled

const val CallbackCancelled = 3: Int

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

const val Destroyed = 2: Int

The device was explicitly destroyed.

FailedCreation

const val FailedCreation = 4: Int

The device failed to be created.

Unknown

const val Unknown = 1: Int

The reason for the device loss is unknown.

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String