ComplianceRule class
A rule declaring which mitigating actions to take when a device is not compliant with its policy.
For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.
Constructors
-
ComplianceRule({ApiLevelCondition? apiLevelCondition, bool? disableApps, NonComplianceDetailCondition? nonComplianceDetailCondition, List<
String> ? packageNamesToDisable}) - ComplianceRule.fromJson(Map json_)
Properties
- apiLevelCondition ↔ ApiLevelCondition?
-
A condition which is satisfied if the Android Framework API level on the
device doesn't meet a minimum requirement.
getter/setter pair
- disableApps ↔ bool?
-
If set to true, the rule includes a mitigating action to disable apps so
that the device is effectively disabled, but app data is preserved.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- nonComplianceDetailCondition ↔ NonComplianceDetailCondition?
-
A condition which is satisfied if there exists any matching
NonComplianceDetail for the device.
getter/setter pair
-
packageNamesToDisable
↔ List<
String> ? -
If set, the rule includes a mitigating action to disable apps specified in
the list, but app data is preserved.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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