DeviceAudienceSelector
public struct DeviceAudienceSelector : Sendable, Codable, Equatable
A collection of properties defining an automation audience
-
init(newUser:
notificationOptIn: locationOptIn: languageIDs: tagSelector: versionPredicate: requiresAnalytics: permissionPredicate: testDevices: hashSelector: deviceTypes: ) Audience selector initializer
Declaration
Swift
public init( newUser: Bool? = nil, notificationOptIn: Bool? = nil, locationOptIn: Bool? = nil, languageIDs: [String]? = nil, tagSelector: DeviceTagSelector? = nil, versionPredicate: JSONPredicate? = nil, requiresAnalytics: Bool? = nil, permissionPredicate: JSONPredicate? = nil, testDevices: [String]? = nil, hashSelector: AudienceHashSelector? = nil, deviceTypes: [String]? = nil )
Parameters
newUser
Flag indicating if audience consists of new users
notificationOptIn
Flag indicating if audience consists of users opted into notifications
locationOptIn
Flag indicating if audience consists of users that have opted into location
languageIDs
Array of language IDs representing a given audience
tagSelector
Internal-only selector
versionPredicate
Version predicate representing a given audience
requiresAnalytics
Flag indicating if audience consists of users that require analytics tracking
permissionPredicate
Flag indicating if audience consists of users that require certain permissions
testDevices
Array of test device identifiers representing a given audience
hashSelector
Internal-only selector
deviceTypes
Array of device types representing a given audience