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

MozActivityRequestHandler.postResult()

This API is available on Firefox or Firefox OS for installed or higher privileged applications.

Summary

The postResult method is used to send back an answer to the app that made the activity request.

Syntax

instanceOfMozActivityRequestHandler.postResult(answer);

Properties

answer
A JavaScript object. Activities Handlers are free to send back any kind of object.

Warning: As there is no formal contract between apps about the type of object to pass as answer, app makers should carefully handle the object they send and retrieve through activities.

Specification

Web Activities is not part of any specification. However, it has some overlap with the proposed Web Intents specification. Mozilla actually proposed Web Activities as a counter proposal to Web Intents. For more information about this, see discussion on the Web Intents Task Force ML.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, fscholz, MHasan, kscarfone, Sheppy, mounirlamouri, Jeremie
 Last updated by: chrisdavidmills,