RemoveTagsAction
public final class RemoveTagsAction : AirshipAction
Removes tags.
Expected argument values: String
(single tag), [String]
(single or multiple tags), or an object.
An example tag group JSON payload:
{
“channel”: {
“channel_tag_group”: [“channel_tag_1”, “channel_tag_2”],
“other_channel_tag_group”: [“other_channel_tag_1”]
},
“named_user”: {
“named_user_tag_group”: [“named_user_tag_1”, “named_user_tag_2”],
“other_named_user_tag_group”: [“other_named_user_tag_1”]
},
“device”: [ “tag”, “another_tag”]
}
Valid situations: ActionSituation.foregroundPush
, ActionSituation.launchedFromPush
ActionSituation.webViewInvocation
, ActionSituation.foregroundInteractiveButton
,
ActionSituation.backgroundInteractiveButton
, ActionSituation.manualInvocation
and
ActionSituation.automation
-
Default names - “remove_tags_action”, “^-t”
Declaration
Swift
public static let defaultNames: [String]
-
Default predicate - rejects foreground pushes with visible display options
Declaration
Swift
public static let defaultPredicate: @Sendable (ActionArguments) -> Bool
-
accepts(arguments:
Asynchronous) Declaration
Swift
public func accepts(arguments: ActionArguments) async -> Bool
-
perform(arguments:
Asynchronous) Declaration
Swift
public func perform(arguments: ActionArguments) async throws -> AirshipJSON?