-
- All Implemented Interfaces:
-
android.os.Parcelable
@RequiresApi(value = 17) public final class PlaceholderSurface extends Surface
A placeholder Surface.
-
-
Field Summary
Fields Modifier and Type Field Description public final booleansecure
-
Method Summary
Modifier and Type Method Description static synchronized booleanisSecureSupported(Context context)Returns whether the device supports secure placeholder surfaces. static PlaceholderSurfacenewInstanceV17(Context context, boolean secure)Returns a newly created placeholder surface. voidrelease()-
Methods inherited from class android.view.Surface
clearFrameRate, describeContents, isValid, lockCanvas, lockHardwareCanvas, readFromParcel, release, setFrameRate, toString, unlockCanvas, unlockCanvasAndPost, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isSecureSupported
static synchronized boolean isSecureSupported(Context context)
Returns whether the device supports secure placeholder surfaces.
- Parameters:
context- Any Context.
-
newInstanceV17
static PlaceholderSurface newInstanceV17(Context context, boolean secure)
Returns a newly created placeholder surface. The surface must be released by calling when it's no longer required.
- Parameters:
context- Any Context.secure- Whether a secure surface is required.
-
release
void release()
-
-
-
-