WebKitDOMBatteryManager

WebKitDOMBatteryManager

Synopsis

                    WebKitDOMBatteryManager;
gboolean            webkit_dom_battery_manager_dispatch_event
                                                        (WebKitDOMBatteryManager *self,
                                                         WebKitDOMEvent *event,
                                                         GError **error);
gboolean            webkit_dom_battery_manager_get_charging
                                                        (WebKitDOMBatteryManager *self);
gdouble             webkit_dom_battery_manager_get_charging_time
                                                        (WebKitDOMBatteryManager *self);
gdouble             webkit_dom_battery_manager_get_discharging_time
                                                        (WebKitDOMBatteryManager *self);
gdouble             webkit_dom_battery_manager_get_level
                                                        (WebKitDOMBatteryManager *self);

Object Hierarchy

  GObject
   +----WebKitDOMObject
         +----WebKitDOMBatteryManager

Implemented Interfaces

WebKitDOMBatteryManager implements WebKitDOMEventTarget.

Properties

  "charging"                 gboolean              : Read
  "charging-time"            gdouble               : Read
  "discharging-time"         gdouble               : Read
  "level"                    gdouble               : Read

Description

Details

WebKitDOMBatteryManager

typedef struct _WebKitDOMBatteryManager WebKitDOMBatteryManager;


webkit_dom_battery_manager_dispatch_event ()

gboolean            webkit_dom_battery_manager_dispatch_event
                                                        (WebKitDOMBatteryManager *self,
                                                         WebKitDOMEvent *event,
                                                         GError **error);

Warning

webkit_dom_battery_manager_dispatch_event has been deprecated since version 2.4 and should not be used in newly-written code. Use webkit_dom_event_target_dispatch_event() instead.

self :

A WebKitDOMBatteryManager

event :

A WebKitDOMEvent

error :

GError

Returns :

A gboolean

webkit_dom_battery_manager_get_charging ()

gboolean            webkit_dom_battery_manager_get_charging
                                                        (WebKitDOMBatteryManager *self);

self :

A WebKitDOMBatteryManager

Returns :

A gboolean

webkit_dom_battery_manager_get_charging_time ()

gdouble             webkit_dom_battery_manager_get_charging_time
                                                        (WebKitDOMBatteryManager *self);

self :

A WebKitDOMBatteryManager

Returns :

A gdouble

webkit_dom_battery_manager_get_discharging_time ()

gdouble             webkit_dom_battery_manager_get_discharging_time
                                                        (WebKitDOMBatteryManager *self);

self :

A WebKitDOMBatteryManager

Returns :

A gdouble

webkit_dom_battery_manager_get_level ()

gdouble             webkit_dom_battery_manager_get_level
                                                        (WebKitDOMBatteryManager *self);

self :

A WebKitDOMBatteryManager

Returns :

A gdouble

Property Details

The "charging" property

  "charging"                 gboolean              : Read

read-only gboolean BatteryManager:charging.

Default value: FALSE


The "charging-time" property

  "charging-time"            gdouble               : Read

read-only gdouble BatteryManager:charging-time.

Default value: 0


The "discharging-time" property

  "discharging-time"         gdouble               : Read

read-only gdouble BatteryManager:discharging-time.

Default value: 0


The "level" property

  "level"                    gdouble               : Read

read-only gdouble BatteryManager:level.

Default value: 0