BatchEventData

@interface BatchEventData

Object holding data to be associated to an event

Keys should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.

  • Add a tag.

    Declaration

    Objective-C

    - (void)addTag:(id)tag;

    Parameters

    tag

    Tag to add. Can’t be longer than 64 characters, and can’t be empty or null. For better results, you should trim/lowercase your strings, and use slugs when possible.

  • Add a boolean attribute for the specified key.

    Declaration

    Objective-C

    - (void)putBool:(id)value forKey:(id)key;

    Parameters

    value

    Boolean value to add.

    key

    Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.

  • Add an integer (NSInteger) attribute for the specified key.

    Declaration

    Objective-C

    - (void)putInteger:(id)value forKey:(id)key;

    Parameters

    value

    Integer value to add.

    key

    Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.

  • Add a float attribute for the specified key.

    Declaration

    Objective-C

    - (void)putFloat:(float)value forKey:(id)key;

    Parameters

    value

    Float value to add.

    key

    Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.

  • Add a double attribute for the specified key.

    Declaration

    Objective-C

    - (void)putDouble:(double)value forKey:(id)key;

    Parameters

    value

    double value to add.

    key

    Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.

  • Add a string attribute for the specified key.

    Declaration

    Objective-C

    - (void)putString:(id)value forKey:(id)key;

    Parameters

    value

    String value to add. Can’t be longer than 64 characters, and can’t be empty or nil. For better results, you should trim/lowercase your strings, and use slugs when possible.

    key

    Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.

  • Add a date attribute for the specified key.

    Declaration

    Objective-C

    - (void)putDate:(id)value forKey:(id)key;

    Parameters

    value

    Date value to add. Can’t be nil.

    key

    Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.

  • Add an URL attribute for the specified key.

    Declaration

    Objective-C

    - (void)putURL:(id)value forKey:(id)key;

    Parameters

    value

    URL value to add. Can’t be longer than 2048 characters, and can’t be empty or nil. Must follow the format ‘scheme://[authority][path][?query][#fragment]’.

    key

    Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can’t be longer than 30 characters.