Commit 9970cf8b authored by Emanuele Aina's avatar Emanuele Aina

web-runtime: Describe GObject-Introspection mappings

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <>
Differential Revision:
parent 867e96aa
......@@ -365,7 +365,49 @@ Window implements ApertisImportsObject;
The `GObjectIntrospection` interface will then export
the GObject-Introspection modules whitelisted by the application
(for example ``).
(for example ``).
Modules export object constructors as JavaScript constructors
that can take a map of construction time properties:
const Gio =;
let settings = new Gio.Settings({'schema': 'com.example.AddressBook'});
If multiple, incompatible API versions of a module exist,
a specific version can be requested using the `` map:
```['Folks'] = '0.6';
const Folks =;
GObject methods are called just like JavaScript object methods:
Signals can be handled using the `connect()` method:
settings.connect('changed', function(key) { print(key); });
GObject properties may be retrieved and set
using JavaScript property-style access:
Both enumerations and flags appear as entries under the namespace,
with associated member properties:
### Hardkey integration
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment