manpagez: man pages & more
html files: libsecret-1
Home | html | info | man

Javascript: Importing libsecret

In javascript use the standard introspection import mechanism to get at libsecret:

1
2
3
4
5
const Secret = imports.gi.Secret;

// ... and here's a sample line of code which uses the import
var schema = new Secret.Schema.new("org.mock.Schema",
    Secret.SchemaFlags.NONE, { "name", Secret.SchemaAttributeType.STRING });
© manpagez.com 2000-2018
Individual documents may contain additional copyright information.