Display options to create shortcuts for an app. On Mac, only packaged app
shortcuts can be created.
id This should be the id from an app item of
management.ExtensionInfo.
Generate an app for a URL. Returns the generated bookmark app.
url The URL of a web page. The scheme of the URL can only be "http" or
"https".
title The title of the generated app.
Returns a list of permission
warnings for the given extension
manifest string. Note: This function can be used without requesting the
'management' permission in the manifest.
manifestStr Extension manifest JSON string.
Returns information about the calling extension, app, or theme. Note: This
function can be used without requesting the 'management' permission in the
manifest.
Enables or disables an app or extension. In most cases this function must
be called in the context of a user gesture (e.g. an onclick handler for a
button), and may present the user with a native confirmation UI as a way
of preventing abuse.
id This should be the id from an item of management.ExtensionInfo.
enabled Whether this item should be enabled or disabled.
Set the launch type of an app.
id This should be the id from an app item of
management.ExtensionInfo.
launchType The target launch type. Always check and make sure this
launch type is in ExtensionInfo.availableLaunchTypes, because the
available launch types vary on different platforms and configurations.
Uninstalls a currently installed app or extension. Note: This function
does not work in managed environments when the user is not allowed to
uninstall the specified extension/app. If the uninstall fails (e.g. the
user cancels the dialog) the promise will be rejected or the callback will
be called with runtime.lastError set.
id This should be the id from an item of management.ExtensionInfo.
Uninstalls the calling extension. Note: This function can be used without
requesting the 'management' permission in the manifest. This function does
not work in managed environments when the user is not allowed to uninstall
the specified extension/app.