No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
onCallBegin()
使用方法
コールが開始 (着信) するとコールされる関数を登録します。このメソッドは、コンピュータテレフォニーインテグレーション (CTI) 用です。これは、API バージョン 24.0 以降でのみ使用できます。
構文
1sforce.console.cti.onCallBegin( eventHandler:Function )引数
| 名前 | 型 | 説明 |
|---|---|---|
| eventHandler | function | コールが開始するとコールされる JavaScript メソッド。 |
サンプルコード – Visualforce
1swfobject.registerObject("clippy.codeblock-1", "9");<apex:page>
2 <apex:includeScript value="/support/console/24.0/integration.js"/>
3 <script type="text/javascript">
4
5 var callback = function (result) {
6 alert('Call ' + result.id + 'Just came in!');
7 };
8
9 //Note that we are using the CTI submodule here
10 sforce.console.cti.onCallBegin(callback);
11 </script>
12</apex:page>応答
このメソッドは非同期であ���ため、コールバックメソッドのオブジェクトで応答を返します。応答オブジェクトには次の項目が含まれます。
| 名前 | 型 | 説明 |
|---|---|---|
| id | string | 開始したコールのコールオブジェクト ID。 |