{% extends "base.html" %} {% block title %}{{ TITLE }}{% endblock %} {% block styles %} {{ super() }} {% endblock styles %} {% block content %}
This is a reference of public JavaScript API of NuvolaKit, the core part of Nuvola Apps Runtime. Undocumented parts of the API are considered unstable, internal or experimental, so you should not use them.
Unlike C++ or Java, JavaScript doesn't have class-based inheritance, but prototype-based inheritance. New objects are created from other object that are prototypes and inheritance creates prototype chain. While some JavaScript frameworks try to simulate the class-based inheritance, NuvolaKit enforces usage of Object.create() method to create new objects from prototypes and provides two convenience wrappers: Nuvola.$prototype to create new prototype objects and Nuvola.$object to create new instance objects.
Most of the integration scripts will probably use only a small part of the API:
If you want to do more magic, you will need new spells:
Objects like Nuvola.menuBar, Nuvola.launcher, Nuvola.browser, Nuvola.mediaKeys are low-level components you probably don't want to use directly since Nuvola.MediaPlayer takes care about it.
{{ body }} {% include "footer.inc.html" %}