이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!
There are a couple of differences between desktop Firefox and Firefox for Android that are particularly relevant to add-on developers:
- there is no visible XUL in the user interface, so you can't use XUL overlays to create your add-on's UI
- the
gBrowser
object does not exist, so you can't usetabbrowser
to interact with browser tabs
Instead, Firefox for Android provides its own APIs:
NativeWindow
enables you to manipulate parts of the native Android UIBrowserApp
enables you to interact with browser tabs- PageActions.jsm allows you to add buttons to the urlbar.
Prompt.jsm
allows you to easily show native prompts, dialogs, menus, and listsNotifications.jsm
allows you to handle system notifcationsHome.jsm
allows you to customize the home pageHomeProvider.jsm
allows you to store data to show on the home pageAccounts.jsm
allows you to start the Firefox Account set-up processJavaAddonManager.jsm
allows you to dynamically load and interface with compiled Java code. Firefox 42Snackbars.jsm
allows you to show Snackbar notification. Firefox 44
In these pages we've documented the main functions and properties exposed by these objects. To see all the details, refer to the code at browser.js
.
We also have some modules that don't ship with Firefox for Android but can be used in addons:
-
Sound.jsm
lets you play sounds in the browser simply
문서 태그 및 공헌자
최종 변경:
wbamberg,