CompoundDeviceAudienceSelector
public indirect enum CompoundDeviceAudienceSelector : Sendable, Codable, Equatable
Compound audience selector
-
Atomic selector. Defines an actual audience selector.
Declaration
Swift
case atomic(DeviceAudienceSelector)
-
NOT selector. Negates the results.
Declaration
Swift
case not(CompoundDeviceAudienceSelector)
-
AND selector. All selectors have to evaluate true to match. If empty, evaluates to true.
Declaration
Swift
case and([CompoundDeviceAudienceSelector])
-
OR selector. At least once selector has to evaluate true to match. If empty, evaluates to false.
Declaration
Swift
case or([CompoundDeviceAudienceSelector])
-
Declaration
Swift
public init(from decoder: any Decoder) throws
-
Declaration
Swift
public func encode(to encoder: any Encoder) throws
-
Combines old and new selector into a CompoundDeviceAudienceSelector
Declaration
Swift
static func combine( compoundSelector: CompoundDeviceAudienceSelector?, deviceSelector: DeviceAudienceSelector? ) -> CompoundDeviceAudienceSelector?
Parameters
compoundSelector
An optional
CompoundDeviceAudienceSelector
.deviceSelector
An optional
DeviceAudienceSelector
.Return Value
A
CompoundDeviceAudienceSelector
if either provided selector is non nill, otherwise nil.