Rate this page:

Host

Hosts are the primary method for Connect apps to interact with the page.

Methods

getSelectedText (callback)

Gets the selected text on the page.

Parameters

NameTypeDescription
callback

function

Callback method to be executed with the selected text.

Example

1
2
3
AP.host.getSelectedText(function (selection) {
  console.log(selection);
});

Rate this page: