Namespace: util

cep. util

Communicates with OS browser and internet

Source:

Members


<static, constant> DEPRECATED_API :ErrorCode

Type:
Source:

Methods


<static> openURLInDefaultBrowser(url)

Opens a page in the default system browser.

Parameters:
Name Type Description
url string

The URL of the page/file to open, or the email address.
Must use HTTP/HTTPS/file/mailto.

Source:
Returns:

An object with this property:


  • "err": The status of the operation, one of:

    • NO_ERROR

    • ERR_UNKNOWN

    • ERR_INVALID_PARAMS



Type
object | ErrorCode
Example
"http://www.adobe.com"
 "https://github.com"
 "file:///C:/log.txt"
 "mailto:test@adobe.com"

<static> registerExtensionUnloadCallback(callback)

Registers a callback function for extension unload. If called more than once,
the last callback that is successfully registered is used.

Parameters:
Name Type Description
callback function

The handler function.

Deprecated:
  • since version 6.0.0
Source:
Returns:

An object with this property:


  • "err": The status of the operation, one of:

    • NO_ERROR

    • ERR_INVALID_PARAMS



Type
object | ErrorCode

<static> storeProxyCredentials(username, password)

Stores the user's proxy credentials

Parameters:
Name Type Description
username string

proxy username

password string

proxy password

Source:
Returns:

An object with this property:


  • "err": The status of the operation, one of

    • NO_ERROR

    • ERR_INVALID_PARAMS



Type
object | ErrorCode