Class CAMetalLayer

All Implemented Interfaces:
CAMediaTiming, NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class CAMetalLayer
extends CALayer
  • Constructor Details

    • CAMetalLayer

      public CAMetalLayer()
    • CAMetalLayer

      protected CAMetalLayer​(NSObject.Handle h, long handle)
    • CAMetalLayer

      protected CAMetalLayer​(NSObject.SkipInit skipInit)
    • CAMetalLayer

      public CAMetalLayer​(CALayer layer)
  • Method Details

    • getDevice

      public MTLDevice getDevice()
    • setDevice

      public void setDevice​(MTLDevice v)
    • getPreferredDevice

      public MTLDevice getPreferredDevice()
      Since:
      Available in iOS 13.0 and later.
    • getPixelFormat

      public MTLPixelFormat getPixelFormat()
    • setPixelFormat

      public void setPixelFormat​(MTLPixelFormat v)
    • isFramebufferOnly

      public boolean isFramebufferOnly()
    • setFramebufferOnly

      public void setFramebufferOnly​(boolean v)
    • getDrawableSize

      public CGSize getDrawableSize()
    • setDrawableSize

      public void setDrawableSize​(CGSize v)
    • getMaximumDrawableCount

      public long getMaximumDrawableCount()
      Since:
      Available in iOS 11.2 and later.
    • setMaximumDrawableCount

      public void setMaximumDrawableCount​(long v)
      Since:
      Available in iOS 11.2 and later.
    • presentsWithTransaction

      public boolean presentsWithTransaction()
    • setPresentsWithTransaction

      public void setPresentsWithTransaction​(boolean v)
    • getColorspace

      public CGColorSpace getColorspace()
    • setColorspace

      public void setColorspace​(CGColorSpace v)
    • allowsNextDrawableTimeout

      public boolean allowsNextDrawableTimeout()
      Since:
      Available in iOS 11.0 and later.
    • setAllowsNextDrawableTimeout

      public void setAllowsNextDrawableTimeout​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • nextDrawable

      public CAMetalDrawable nextDrawable()
    • getDefaultValue

      public static NSObject getDefaultValue​(String key)
    • needsDisplay

      public static boolean needsDisplay​(String key)
    • cornerCurveExpansionFactor

      public static double cornerCurveExpansionFactor​(CALayerCornerCurve curve)
      Since:
      Available in iOS 13.0 and later.
    • getDefaultAction

      public static CAAction getDefaultAction​(String event)