ViewfinderSurfaceRequest


public final class ViewfinderSurfaceRequest


The request to get an android.view.Surface to display viewfinder input.

This request contains requirements for the surface resolution and viewfinder input and output information.

Summary

Public constructors

ViewfinderSurfaceRequest(
    int width,
    int height,
    ImplementationMode implementationMode,
    String requestId
)

Creates a new surface request with given resolution, and optional implementation mode request ID.

Public methods

boolean
equals(Object other)
final int

The requested surface height.

final ImplementationMode

The ImplementationMode to apply to the viewfinder.

final String

An optional request ID to allow requests to be differentiated via equals.

final int

The requested surface width.

int
@NonNull String

Public constructors

ViewfinderSurfaceRequest

Added in 1.5.0-beta01
public ViewfinderSurfaceRequest(
    int width,
    int height,
    ImplementationMode implementationMode,
    String requestId
)

Creates a new surface request with given resolution, and optional implementation mode request ID.

Public methods

equals

public boolean equals(Object other)

getHeight

Added in 1.5.0-beta01
public final int getHeight()

The requested surface height.

getImplementationMode

Added in 1.5.0-beta01
public final ImplementationMode getImplementationMode()

The ImplementationMode to apply to the viewfinder. Defaults to null, which will use the viewfinder's default implementation mode.

getRequestId

Added in 1.5.0-beta01
public final String getRequestId()

An optional request ID to allow requests to be differentiated via equals. Defaults to null.

getWidth

Added in 1.5.0-beta01
public final int getWidth()

The requested surface width.

hashCode

public int hashCode()

toString

public @NonNull String toString()