Methods
registerAnimation(animationInstance, callbackopt) → {Promise}
Register a LED Ring animation.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| animationInstance | LedringAnimation | |||||||||||
| callback | function | <optional> | 
 | 
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  | |
| 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  | |
| animationInstance | LedringAnimation | ||
| callback | genericCallbackFunction | <optional> | 
Returns:
- Type:
- 
        
Promise
 You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››
      You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››