SurfaceGetCurrentTextureStatus


public final class SurfaceGetCurrentTextureStatus


Status codes for retrieving the current texture from a surface.

Summary

Constants

static final int
Error = 6

A deterministic error occurred, such as the surface not being configured.

static final int
Lost = 5

The surface has been lost and must be recreated.

static final int

The surface configuration is outdated and must be reconfigured.

static final int

The texture was acquired successfully and is optimal for presentation.

static final int

The texture was acquired successfully but is suboptimal for presentation; reconfiguration may be needed.

static final int

The operation timed out while acquiring the texture.

Public methods

static final @NonNull String
toString(int value)

Constants

Error

public static final int Error = 6

A deterministic error occurred, such as the surface not being configured.

Lost

public static final int Lost = 5

The surface has been lost and must be recreated.

Outdated

public static final int Outdated = 4

The surface configuration is outdated and must be reconfigured.

SuccessOptimal

public static final int SuccessOptimal = 1

The texture was acquired successfully and is optimal for presentation.

SuccessSuboptimal

public static final int SuccessSuboptimal = 2

The texture was acquired successfully but is suboptimal for presentation; reconfiguration may be needed.

Timeout

public static final int Timeout = 3

The operation timed out while acquiring the texture.

Public methods

toString

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