ModifyAttributesAction
public final class ModifyAttributesAction : AirshipAction
Modifies attributes.
An example JSON payload:
{ “channel”: { set: {“key”: value, … }, remove: [“attribute”, ….] }, “named_user”: { set: {“key”: value, … }, remove: [“attribute”, ….] } }
Valid situations: ActionSituation.foregroundPush
, ActionSituation.launchedFromPush
ActionSituation.webViewInvocation
, ActionSituation.foregroundInteractiveButton
,
ActionSituation.backgroundInteractiveButton
, ActionSituation.manualInvocation
, and
ActionSituation.automation
-
Default names - “modify_attributes_action”, “^a”
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?