Index

DialerAgent

new DialerAgent()

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 AttentionScreen 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.

Example
var dialerAgent = new DialerAgent();
dialerAgent.start(); // Attach the event listeners.
dialerAgent.stop();  // Deattach the event listeners.