ApplicationPolicy class

Policy for an individual app.

Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled. The maximum number of applications that you can specify per policy is 3,000.

Constructors

ApplicationPolicy({List<String>? accessibleTrackIds, String? alwaysOnVpnLockdownExemption, String? autoUpdateMode, String? connectedWorkAndPersonalApp, String? credentialProviderPolicy, String? defaultPermissionPolicy, List<String>? delegatedScopes, bool? disabled, ExtensionConfig? extensionConfig, List<InstallConstraint>? installConstraint, int? installPriority, String? installType, bool? lockTaskAllowed, Map<String, Object?>? managedConfiguration, ManagedConfigurationTemplate? managedConfigurationTemplate, int? minimumVersionCode, String? packageName, List<PermissionGrant>? permissionGrants, String? workProfileWidgets})
ApplicationPolicy.fromJson(Map json_)

Properties

accessibleTrackIds List<String>?
List of the app’s track IDs that a device belonging to the enterprise can access.
getter/setter pair
alwaysOnVpnLockdownExemption String?
Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled.
getter/setter pair
autoUpdateMode String?
Controls the auto-update mode for the app. Possible string values are:
getter/setter pair
connectedWorkAndPersonalApp String?
Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. Possible string values are:
getter/setter pair
credentialProviderPolicy String?
Whether the app is allowed to act as a credential provider on Android 14 and above.
getter/setter pair
defaultPermissionPolicy String?
The default policy for all permissions requested by the app.
getter/setter pair
delegatedScopes List<String>?
The scopes delegated to the app from Android Device Policy.
getter/setter pair
disabled bool?
Whether the app is disabled.
getter/setter pair
extensionConfig ExtensionConfig?
Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
installConstraint List<InstallConstraint>?
The constraints for installing the app.
getter/setter pair
installPriority int?
Amongst apps with installType set to: FORCE_INSTALLED PREINSTALLEDthis controls the relative priority of installation.
getter/setter pair
installType String?
The type of installation to perform. Possible string values are:
getter/setter pair
lockTaskAllowed bool?
Whether the app is allowed to lock itself in full-screen mode.
getter/setter pair
managedConfiguration Map<String, Object?>?
Managed configuration applied to the app.
getter/setter pair
managedConfigurationTemplate ManagedConfigurationTemplate?
The managed configurations template for the app, saved from the managed configurations iframe.
getter/setter pair
minimumVersionCode int?
The minimum version of the app that runs on the device.
getter/setter pair
packageName String?
The package name of the app.
getter/setter pair
permissionGrants List<PermissionGrant>?
Explicit permission grants or denials for the app.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workProfileWidgets String?
Specifies whether the app installed in the work profile is allowed to add widgets to the home screen. Possible string values are:
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited