Constructor
new Action(id, type, subtype)
Parameters:
| Name | Type | Description | 
|---|---|---|
id | 
            
            string | Input source ID.  | 
        
type | 
            
            string | Action type: none, key, pointer.  | 
        
subtype | 
            
            string | Action subtype:   | 
        
Throws:
- 
        
If any parameters are undefined.
 - Type
 - InvalidArgumentError
 
Methods
(static) fromJSON(actionSequence, actionItem) → {action.Action}
Parameters:
| Name | Type | Description | 
|---|---|---|
actionSequence | 
            
            action.Sequence | Object representing sequence of actions from one input source.  | 
        
actionItem | 
            
            action.Action | Object representing a single action from |actionSequence|.  | 
        
Throws:
- 
- 
        
If any
actionSequenceoractionItemattributes are invalid. - Type
 - InvalidArgumentError
 
 - 
        
 - 
- 
        
If
actionItem.typeisaction.PointerCancel. - Type
 - UnsupportedOperationError
 
 - 
        
 
Returns:
An action that can be dispatched; corresponds to |actionItem|.
- Type
 - action.Action