docs » plugins.core.tangent.manager.mode
Represents a Tangent Mode
- Functions - API calls offered directly by the extension
- is
- Constructors - API calls which return an object, typically one that offers API methods
- mode
- Methods - API calls which can only be made on an object returned by a constructor
- activate
- onActivate
- onDeactivate
- xml
Signature | plugins.core.tangent.manager.mode.is(thing) -> boolean |
---|---|
Type | Function |
Description | Checks to see if thing is a mode or not. |
Parameters |
|
Returns |
|
Signature | plugins.core.tangent.manager.mode(id, name) |
---|---|
Type | Constructor |
Description | Creates a new Mode instance. |
Parameters |
|
Returns | * |
Signature | plugins.core.tangent.manager.mode:activate() -> nil |
---|---|
Type | Method |
Description | Executes the activate function, if present. |
Parameters |
|
Returns |
|
Signature | plugins.core.tangent.manager.mode:onActivate(activateFn) -> self |
---|---|
Type | Method |
Description | Sets the function that will be called when the Tangent sends a 'mode change' request. |
Parameters |
|
Returns |
|
Signature | plugins.core.tangent.manager.mode:onDeactivate(deactivateFn) -> self |
---|---|
Type | Method |
Description | Sets the function that will be called when the Tangent sends a 'mode change' request and switche to a different mode. |
Parameters |
|
Returns |
|
Signature | plugins.core.tangent.manager.mode:xml() -> cp.web.xml |
---|---|
Type | Method |
Description | Returns the xml configuration for the Mode. |
Parameters |
|
Returns |
|