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 and Runtime Contexts:

  • 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 highlight the outline of drawable object and allocate buffer to render the drawable for animating purpose.

Since:

API Level 5.1.0

Throws:


Generated Aug 25, 2026, 11:14:49 AM