The same is true to include an extension asset onĪ web page. Use cases Add an image to a web pageįor a web page to access an asset hosted on another domain, it must specify the resource's full URL Includes when the extension is reloaded with (). This means that theĬ event will fire with the "update" reason. When an unpacked extension is reloaded, this is treated as an update. Kiosk mode utilities These methods are available only on ChromeOS, and exist mainly to support kiosk implementations. Helper utilities These methods provide utility such as the conversion of internal resource representations toĮxternal formats. Methods and events in this category include Managing extension lifecycle and options These properties let you perform some meta-operations on the extension, and display the options page. Accessing extension and platform metadata These methods let you retrieve several specific pieces of metadata about the extension and the Note: See Message Passing for an overview of the subject. In addition, your extension can pass messages to native applications on the user's device using The Runtime API provides methods to support a number of areas that your extensionsĬan use: Message passing Your extension can communicate with different contexts within your extension and also with other extensions using these methods and events: The following example shows how to declare the "nativeMessaging" permission in the manifest: This permission is needed for connectNative(), sendNativeMessage() and onNativeConnect. Most members of this API do not require any permissions. You can also use this API to convert the relative path of URLs to fully-qualified URLs. Use the ntime API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the extension lifecycle.
0 Comments
Leave a Reply. |