Class: Toybox.WatchUi.ComplicationDrawableRef

Overview

Complication drawable reference which defines the drawable and its bounds used to animating or highlighting the complication.

Since:

API Level 5.1.0

App Types:

  • Audio Content Provider

  • Data Field

  • Glance

  • Watch App

  • Watch Face

  • Widget

Supported Devices:

Instance Method Summary collapse

Instance Method Details

initialize(options as { :drawable as WatchUi.Drawable, :boundingBox as Graphics.BoundingBox })

Constructor

Parameters:

  • options(Lang.Dictionary)

    A Dictionary of options. Cannot be null.

    • :drawable(WatchUi.Drawable)

      The drawable object.

    • :boundingBox(Graphics.BoundingBox)

      The bounding box of the drawable object, used to hightlight the outline of drawable object and allocate buffer to render the drawable for animating purpose.

Since:

API Level 5.1.0

Throws:


Generated Mar 4, 2025, 4:09:53 PM