Class: DialerAgent

DialerAgent

new DialerAgent()

The delay between an incoming phone call and the first ring or vibration needs to be as short as possible.

The delay between an incoming phone call and the first ring or vibration needs to be as short as possible.

This simple module keeps the ringtone (blob) around and starts alerting the user as soon as a new incoming call is detected via the mozTelephony API. And it opens an AttentionWindow with the preloaded callscreen app inside.

We also listen for the sleep and volumedown hardware buttons to provide the user with an easy way to stop the ringing.

Source:
Requires:
  • module:SettingsListener
  • module:SettingsURL
  • module:Service
  • module:LazyLoader
Example
var dialerAgent = new DialerAgent();
dialerAgent.start(); // Attach the event listeners.
dialerAgent.stop();  // Deattach the event listeners.

Requires

  • module:SettingsListener
  • module:SettingsURL
  • module:Service
  • module:LazyLoader