Question

I have this script here:

function MainAssistant(argFromPusher) {
}

MainAssistant.prototype = {
    setup: function() {
        Ares.setupSceneAssistant(this);
    },
    cleanup: function() {
        Ares.cleanupSceneAssistant(this);
    },
    button6Tap: function(inSender, event) {

    },
    contactMe: function(inSender, event) {
        this.$.launchEmail1.launch();
    },
    launchEmail1Success: function(inSender, inResponse, inRequest) {

    }
};

I see in the documents you can use recipients but i don't understand how to use it. I know its a pram, but how do i use it. Thanks

Was it helpful?

Solution

You'll find some hints here at the webOS developer forum.

Basically:

this.$.launchEmail1.setRecipients({
              type:"email",
              role:1,
              value:"address@email.com",
              contactDisplay:"Your name"
          });
this.$.launchEmail1.setSubject("I have a question!");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top