AttributeMutations
@available(*, deprecated, message: "Use Contact#editAttributes(﹚ or Channel#editAttributes(﹚ instead.")
@objc(UAAttributeMutations)
public class AttributeMutations : NSObject
Defines attributes mutations.
-
Sets an attribute.
Declaration
Swift
@objc(setString:forAttribute:) public func setString(_ string: String, forAttribute: String)
Parameters
string
The value.
forAttribute
The attribute
-
Sets an attribute.
Declaration
Swift
@objc(setNumber:forAttribute:) public func setNumber(_ number: NSNumber, forAttribute: String)
Parameters
number
The value.
forAttribute
The attribute
-
Sets an attribute.
Declaration
Swift
@objc(setDate:forAttribute:) public func setDate(_ date: Date, forAttribute: String)
Parameters
date
The value.
forAttribute
The attribute
-
Removes an attribute.
Declaration
Swift
@objc(removeAttribute:) public func removeAttribute(_ attribute: String)
Parameters
attribute
The attribute
-
Generates an empty mutation.
Declaration
Swift
@objc public class func mutations() -> AttributeMutations
Return Value
An empty mutation object.