Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PowerManagementEvent

import type { PowerManagementEvent } from "https://googleapis.deno.dev/v1/androidmanagement:v1.ts";

A power management event.

interface PowerManagementEvent {
batteryLevel?: number;
createTime?: Date;
eventType?:
| "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED"
| "BATTERY_LEVEL_COLLECTED"
| "POWER_CONNECTED"
| "POWER_DISCONNECTED"
| "BATTERY_LOW"
| "BATTERY_OKAY"
| "BOOT_COMPLETED"
| "SHUTDOWN";
}

§Properties

§
batteryLevel?: number
[src]

For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.

§
createTime?: Date
[src]

The creation time of the event.

§
eventType?: "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED" | "BATTERY_LEVEL_COLLECTED" | "POWER_CONNECTED" | "POWER_DISCONNECTED" | "BATTERY_LOW" | "BATTERY_OKAY" | "BOOT_COMPLETED" | "SHUTDOWN"
[src]

Event type.