MixpanelGroup Class Reference

Inherits from NSObject
Declared in MixpanelGroup.h

– set:

Set properties on this Mixpanel Group. Keys in properties must be NSString, and values are MixpanelTypes.

- (void)set:(NSDictionary *)properties

Parameters

properties

properties dictionary

Discussion

The properties will be set on the current group. We use an NSAssert to enforce this type requirement. In release mode, the assert is stripped out and we will silently convert incorrect types to strings using [NSString stringWithFormat:@“%@”, value]. If the existing group record on the server already has a value for a given property, the old value is overwritten. Other existing properties will not be affected.

Declared In

MixpanelGroup.h

– setOnce:

Set properties on this Mixpanel Group, but don’t overwrite if there are existing values.

- (void)setOnce:(NSDictionary *)properties

Parameters

properties

properties dictionary

Discussion

This method is identical to set() except it will only set properties that are not already set.

Declared In

MixpanelGroup.h

– unset:

Remove a property and all its values from this Mixpanel Group. For properties that aren’t set will be no effect.

- (void)unset:(NSString *)property

Parameters

property

the property to be unset

Declared In

MixpanelGroup.h

– union:values:

Union list properties.

- (void)union:(NSString *)property values:(NSArray<id<MixpanelType> > *)values

Parameters

property

mapping of list property names to lists to union

Discussion

Property keys must be NSString objects.

Declared In

MixpanelGroup.h

– deleteGroup

Permanently remove a group on server side.

- (void)deleteGroup

Declared In

MixpanelGroup.h

– remove:value:

Remove one value from a group property.

- (void)remove:(NSString *)property value:(id<MixpanelType>)value

Parameters

property

the name of group property

value

the value to be removed

Declared In

MixpanelGroup.h