Package 

Class PlaceholderSurface

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final boolean secure
    • Method Summary

      Modifier and Type Method Description
      static synchronized boolean isSecureSupported(Context context) Returns whether the device supports secure placeholder surfaces.
      static PlaceholderSurface newInstanceV17(Context context, boolean secure) Returns a newly created placeholder surface.
      void release()
      • 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.