diff options
Diffstat (limited to 'src/components/HMI/ffw/BasicCommunicationRPC.js')
-rw-r--r-- | src/components/HMI/ffw/BasicCommunicationRPC.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/HMI/ffw/BasicCommunicationRPC.js b/src/components/HMI/ffw/BasicCommunicationRPC.js index 9614c125c4..4c541bf727 100644 --- a/src/components/HMI/ffw/BasicCommunicationRPC.js +++ b/src/components/HMI/ffw/BasicCommunicationRPC.js @@ -966,6 +966,27 @@ FFW.BasicCommunication = FFW.RPCObserver }, /** + * Sender: HMI->SDL. When: upon phone-call event started or ended + * + * @params {Boolean} + */ + OnPhoneCall: function(isActive) { + + Em.Logger.log("FFW.BasicCommunication.OnPhoneCall"); + + // send request + + var JSONMessage = { + "jsonrpc": "2.0", + "method": "BasicCommunication.OnPhoneCall", + "params": { + "isActive": isActive + } + }; + this.client.send(JSONMessage); + }, + + /** * Initiated by HMI user. In response optional list of found devices - * if not provided, not were found. */ |