Package 

Class CanvasUtil

    • Method Summary

      Modifier and Type Method Description
      static void enableZ(Canvas canvas, boolean enable) Enables Z support for the Canvas.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • enableZ

         static void enableZ(Canvas canvas, boolean enable)

        Enables Z support for the Canvas. The method is publicly available starting from API 29 and washidden before, so we have to resort to reflection tricks to ensure we can use this API.