WebAPI/AppDefinedTeleophony: Difference between revisions

Jump to navigation Jump to search
Line 6: Line 6:


== Contacts API ==
== Contacts API ==
  interface ContactField : nsISupports
  interface ContactProperties {
                attribute DOMString[]      name;
                attribute DOMString[]      honorificPrefix;
                attribute DOMString[]      givenName;
                attribute DOMString[]      additionalName;
                attribute DOMString[]      familyName;
                attribute DOMString[]      honorificSuffix;
                attribute DOMString[]      nickname;
                attribute ContactField[]    email;
                attribute DOMString[]      photo;
                attribute ContactField[]    url;
                attribute DOMString[]      categories;
                attribute ContactAddress[]  adr;
                attribute ContactTelField[] tel;
                attribute DOMString[]      org;
                attribute DOMString[]      jobTitle;
                attribute Date              bday;
                attribute DOMString[]      note;
                attribute ContactField[]    impp;
                attribute Date              anniversary;
                attribute DOMString        sex;
                attribute DOMString        genderIdentity;
                attribute ContactAny        otherAddresses;
};
 
interface ContactAny : 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 14: Line 39:
  };
  };


Add an interface |ContactAny| and add |otherAddresses| to ContactProperties
* |handler| and
* |handler| and
* |status| fields
* |status| fields
are added to ContactField interface.  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.
Confirmed users
398

edits

Navigation menu