Skip to content

Segments - Objective-C

Segments provide the ability to target specific audiences with Campaigns. For example, you can target an audience within a certain age group and gender by creating a custom Campaign.

Call the setSegments method and pass segments parameter to set segments.

NSDictionary *segments=@{
    @"gender": @"male", 
    @"age": @"23"
};
[[PulseSDK sharedClient] setSegments:segments];

Call clearSegments to clear all segments.

[[PulseSDK sharedClient] clearSegments];