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(Creates a new surface request with given resolution, and optional implementation mode request ID. |
Public methods |
|
|---|---|
boolean |
|
final int |
The requested surface height. |
final ImplementationMode |
The |
final String |
An optional request ID to allow requests to be differentiated via |
final int |
getWidth()The requested surface width. |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
ViewfinderSurfaceRequest
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
getImplementationMode
public final ImplementationMode getImplementationMode()
The ImplementationMode to apply to the viewfinder. Defaults to null, which will use the viewfinder's default implementation mode.
getRequestId
public final String getRequestId()
An optional request ID to allow requests to be differentiated via equals. Defaults to null.