introspect method

  1. @override
List<DBusIntrospectInterface> introspect()

Called to get introspection information about this object.

Implementation

@override
List<DBusIntrospectInterface> introspect() {
  return [
    DBusIntrospectInterface(
      _batteryInterfaceName,
      properties: [
        DBusIntrospectProperty('Percentage', DBusSignature('y'),
            access: DBusPropertyAccess.read),
        DBusIntrospectProperty('Source', DBusSignature('s'),
            access: DBusPropertyAccess.read),
        DBusIntrospectProperty('Device', DBusSignature('o'),
            access: DBusPropertyAccess.read),
      ],
    ),
  ];
}