Collection of constraints for the given entry. There are several types of constraints you can specify, each with either an allowed-list
or a blocked-list
but not both.
The constraints listed are strings that are treated as a regular expression and expected to match anywhere in the value being tested. If you want the string to match exactly, add line anchors to your regular expression. For example, ^21_KANTSU2E_UHD_QTV$
will match 21_KANTSU2E_UHD_QTV
exactly, and not 21_KANTSU2E_UHD_QTV_OS65
.
capsule {
...
store-sections {
section (MusicAndAudio)
section (ArtAndLifestyle) {
visibility-constraints {
country-constraints{
allow-list {
allow (US)
allow (KR)
}
}
device-class-constraints {
allowed-list {
allow (bixby-mobile)
}
}
}
}
}
...
}
...
capsule-categories {
category (Radio)
category (Podcast) {
visibility-constraints {
language-constraints {
blocked-list {
block (en-GB)
}
}
device-model-constraints {
blocked-list {
block (SM-G973[A-Z]*) // Galaxy S10
}
}
}
}
}
...
country-constraints optional | Specifies any country constraints via either an allowed-list or a blocked-list, but not both |
device-class-constraints optional | Specifies any device class constraints via either an allowed-list or a blocked-list, but not both |
device-model-constraints optional | Specifies any device-model constraints via either an allowed-list or a blocked-list, but not both |
language-constraints optional | Specifies any language constraints via either an allowed-list or a blocked-list, but not both |
target-constraints optional | Specifies language and device constraints for a single target via either an allowed-list or a blocked-list, but not both |