Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1010553 of CallEvent

  • Revision slug: Mozilla/Firefox_OS/API/CallEvent
  • Revision title: CallEvent
  • Revision id: 1010553
  • Created:
  • Creator: chrisdavidmills
  • Is current revision? No
  • Comment

Revision Content

{{FirefoxOSAPIRef("Web Telephony API")}}
{{ B2GOnlyHeader2('certified') }}

The CallEvent interface of the Web Telephony API represents events related to telephone calls.

Properties

{{domxref("CallEvent.call")}} {{readonlyinline}}
A {{domxref("TelephonyCall")}} object representing the call from which the event originated.

Examples

// Telephony object
var tel = navigator.mozTelephony;

// Receive a call
tel.onincoming = function(e) {
  var incomingCall = e.call;

  // Answer the call
  incomingCall.answer();
};

Specifications

Specification Status Comment
{{SpecName('Web Telephony')}} {{Spec2('Web Telephony')}} Draft

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatNo}} {{CompatGeckoMobile("12.0")}} 1.0.1 {{CompatNo}} {{CompatNo}} {{CompatNo}}

See also

Revision Source

<div>{{FirefoxOSAPIRef("Web Telephony API")}}</div>

<div>{{ B2GOnlyHeader2('certified') }}</div>

<p>The <code>CallEvent</code> interface of the <a href="/en-US/docs/Web/API/Web_Telephony_API">Web Telephony API</a> represents events related to telephone calls.</p>

<h2 id="Properties">Properties</h2>

<dl>
 <dt>{{domxref("CallEvent.call")}} {{readonlyinline}}</dt>
 <dd>A {{domxref("TelephonyCall")}} object representing the call from which the event originated.</dd>
</dl>

<h2 id="Examples">Examples</h2>

<pre class="brush: js">
// Telephony object
var tel = navigator.mozTelephony;

// Receive a call
tel.onincoming = function(e) {
  var incomingCall = e.call;

  // Answer the call
  incomingCall.answer();
};</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('Web Telephony')}}</td>
   <td>{{Spec2('Web Telephony')}}</td>
   <td>Draft</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoMobile("12.0")}}</td>
   <td>1.0.1</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also">See also</h2>

<ul>
 <li><a href="/en-US/docs/Web/Guide/API/Telephony/Using_the_Web_Telephony_API">Using the Web Telephony API</a></li>
 <li>{{domxref("Telephony")}}</li>
 <li>{{domxref("CallEvent")}}</li>
 <li>{{domxref("Navigator.mozTelephony")}}</li>
</ul>
Revert to this revision