You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››

Homey.ManagerLedring

const { ManagerLedring } = require('homey');

Table of Contents

Methods

registerAnimation(animationInstance, callbackopt) → {Promise}

Register a LED Ring animation.

Parameters:
Name Type Attributes Description
animationInstance LedringAnimation
callback function <optional>
Name Type Description
err Error
animation LedringAnimation
Returns:
Type:
Promise

registerScreensaver(name, animationInstance, callbackopt) → {Promise}

Register a LED Ring screensaver.

Parameters:
Name Type Attributes Description
name string

Name of the animation as defined in your app's app.json.

animationInstance LedringAnimation
callback genericCallbackFunction <optional>
Returns:
Type:
Promise

unregisterAnimation(animationInstance, callbackopt) → {Promise}

Unregister a LED Ring animation.

Parameters:
Name Type Attributes Description
animationInstance LedringAnimation
callback genericCallbackFunction <optional>
Returns:
Type:
Promise

unregisterScreensaver(name, animationInstance, callbackopt) → {Promise}

Unregister a LED Ring screensaver.

Parameters:
Name Type Attributes Description
name string

Name of the animation as defined in your app's app.json.

animationInstance LedringAnimation
callback genericCallbackFunction <optional>
Returns:
Type:
Promise