public final class DummySurface
extends android.view.Surface
Surface.| Modifier and Type | Field and Description |
|---|---|
boolean |
secure
Whether the surface is secure.
|
static boolean |
SECURE_SUPPORTED
Whether the device supports secure dummy surfaces.
|
| Modifier and Type | Method and Description |
|---|---|
static DummySurface |
newInstanceV17(boolean secure)
Returns a newly created dummy surface.
|
void |
release() |
public static final boolean SECURE_SUPPORTED
public final boolean secure
public static DummySurface newInstanceV17(boolean secure)
release()
when it's no longer required.
Must only be called if Util.SDK_INT is 17 or higher.
secure - Whether a secure surface is required. Must only be requested if
SECURE_SUPPORTED is true.public void release()
release in class android.view.Surface