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

InstallConstraint

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

Amongst apps with InstallType set to: FORCE_INSTALLED PREINSTALLEDthis defines a set of restrictions for the app installation. At least one of the fields must be set. When multiple fields are set, then all the constraints need to be satisfied for the app to be installed.

interface InstallConstraint {
chargingConstraint?: "CHARGING_CONSTRAINT_UNSPECIFIED" | "CHARGING_NOT_REQUIRED" | "INSTALL_ONLY_WHEN_CHARGING";
deviceIdleConstraint?: "DEVICE_IDLE_CONSTRAINT_UNSPECIFIED" | "DEVICE_IDLE_NOT_REQUIRED" | "INSTALL_ONLY_WHEN_DEVICE_IDLE";
networkTypeConstraint?: "NETWORK_TYPE_CONSTRAINT_UNSPECIFIED" | "INSTALL_ON_ANY_NETWORK" | "INSTALL_ONLY_ON_UNMETERED_NETWORK";
}

§Properties

§
chargingConstraint?: "CHARGING_CONSTRAINT_UNSPECIFIED" | "CHARGING_NOT_REQUIRED" | "INSTALL_ONLY_WHEN_CHARGING"
[src]

Optional. Charging constraint.

§
deviceIdleConstraint?: "DEVICE_IDLE_CONSTRAINT_UNSPECIFIED" | "DEVICE_IDLE_NOT_REQUIRED" | "INSTALL_ONLY_WHEN_DEVICE_IDLE"
[src]

Optional. Device idle constraint.

§
networkTypeConstraint?: "NETWORK_TYPE_CONSTRAINT_UNSPECIFIED" | "INSTALL_ON_ANY_NETWORK" | "INSTALL_ONLY_ON_UNMETERED_NETWORK"
[src]

Optional. Network type constraint.