Interface Watchface


  • public interface Watchface
    Represents a watchface.
    • Method Detail

      • renderPreview

        void renderPreview​(ej.microui.display.GraphicsContext g,
                           int x,
                           int y,
                           int size)
        Renders a preview of this watchface.
        Parameters:
        g - the graphics context to draw with.
        x - the x coordinate of the region to draw in.
        y - the y coordinate of the region to draw in.
        size - the width and height of the region to draw in.
      • createRenderable

        Renderable createRenderable()
        Creates a renderable that renders this watchface.

        This method is called when the watchface is scheduled for imminent rendering. The renderable is then attached immediately by calling (see Renderable.onAttached()).

        Returns:
        the renderable.