WebAPI/AppDefinedTeleophony: Difference between revisions

Jump to navigation Jump to search
Line 31: Line 31:
  };
  };


  interface ContactAny : ContactField
  interface ContactAppField : ContactField
  {
  {
   attribute DOMString handler;  // the application/or activity name that can handle voice/video call and messaging.
   attribute DOMString handler;  // the application/or activity name that can handle voice/video call and messaging.
Line 37: Line 37:
  };
  };


Add an interface |ContactAny| and add |otherAddresses| to ContactProperties
Add an interface '''ContactAppField''' and add '''otherAddresses''' to '''ContactProperties'''
* |handler| and
* '''handler''' and
* |status| fields
* '''status''' fields
With them, the contact app can invoke the correct APP to initiate a voice/video call or concall.
With them, the contact app can invoke the correct APP to initiate a voice/video call or concall.


For most IM now, |status| field can be used to show presence and status of a user.  The communication Apps update this variable with URIs of icons to indicate if a user is online or offline or other cases.  For handling changing of |status|, the App should listen on ContactsManager::oncontactchange event.
For most IM now, '''status''' field can be used to show presence and status of a user.  The communication Apps update this variable with URIs of icons to indicate if a user is online or offline or other cases.  For handling changing of '''status''', the App should listen on ContactsManager::oncontactchange event.


== Add a Friend ==
== Add a Friend ==
Confirmed users
398

edits

Navigation menu