ConstraintCollection

Provides access to data about a collection of ConstraintValueInfo providers. Note: This API is experimental and may change at any time. It is disabled by default, but may be enabled with --experimental_platform_api

constraint_settings

sequence ConstraintCollection.constraint_settings

The ConstraintSettingInfo values that this collection directly references.

get

ConstraintValueInfo ConstraintCollection.get(constraint=None)

Returns the specific ConstraintValueInfo for a specific ConstraintSettingInfo.

Parameters

Parameter Description
constraint

ConstraintSettingInfo

The constraint setting to fetch the value for.

May return None.

has

bool ConstraintCollection.has(constraint=None)

Returns whether the specific ConstraintSettingInfo is set.

Parameters

Parameter Description
constraint

ConstraintSettingInfo

The constraint setting to check.