UAAttributeMutations

Objective-C

@interface UAAttributeMutations : NSObject

Swift

class UAAttributeMutations : NSObject

Defines changes to perform on channel attributes.

Attribute Mutations Methods

  • Generates an empty mutation.

    Declaration

    Objective-C

    + (nonnull instancetype)mutations;

    Return Value

    An empty mutation.

  • Sets a string attribute

    Declaration

    Objective-C

    - (void)setString:(nonnull NSString *)string
         forAttribute:(nonnull NSString *)attribute;

    Swift

    func setString(_ string: String, forAttribute attribute: String)

    Parameters

    string

    The string.

    attribute

    The attribute key.

  • Sets a number attribute

    Declaration

    Objective-C

    - (void)setNumber:(nonnull NSNumber *)number
         forAttribute:(nonnull NSString *)attribute;

    Swift

    func setNumber(_ number: NSNumber, forAttribute attribute: String)

    Parameters

    number

    The number.

    attribute

    The attribute key.

  • Sets a date attribute

    Declaration

    Objective-C

    - (void)setDate:(nonnull NSDate *)date
        forAttribute:(nonnull NSString *)attribute;

    Swift

    func setDate(_ date: Date, forAttribute attribute: String)

    Parameters

    date

    The date.

    attribute

    The attribute key.

  • Removes an attribute

    Declaration

    Objective-C

    - (void)removeAttribute:(nonnull NSString *)attribute;

    Swift

    func removeAttribute(_ attribute: String)

    Parameters

    attribute

    The attribute key.