Constructor
new Variant(signature, value)
Construct a new Variant
with the given signature and value.
Parameters:
Name | Type | Description |
---|---|---|
signature |
string | a DBus type signature for the |
value |
any | the value of the |
- Source:
Example
let str = new Variant('s', 'hello');
let num = new Variant('d', 53);
let map = new Variant('a{ss}', { foo: 'bar' });
let list = new Variant('as', [ 'foo', 'bar' ]);