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