PyzePersonalizationIntelligence

@interface PyzePersonalizationIntelligence : NSObject

PyzePersonalizationIntelligence See: http://pyze.com/iOS-Personalization.html and http://pyze.com/product/personalization-intelligence.html for more details.

This class provides access to get the personalization intelligence tags. These tags are set in the intelligence explorer.

Since

2.6.0
  • Get all tags assigned to the user. Note: Tags are case sensitive, High Value and high value are different tags.

    [PyzePersonalizationIntelligence getTags:^(NSArray *tagsList) {
         NSLog(@"PyzePersonalizationIntelligence tags = %@", tagsList);
    }];
    

    Declaration

    Objective-C

    + (void)getTags:(void (^)(NSArray *))completionHandler;

    Swift

    class func getTags(_ completionHandler: (([Any]?) -> Void)!)

    Parameters

    completionHandler

    Handler with array of tag strings or nil.

  • Returns true if requested tag is assigned to user. Note: Tags are case sensitive, High Value and high value are different tags

      NSLog(@"isTagSet = %d", [PyzePersonalizationIntelligence isTagSet:@"loyal"]);
    

    Declaration

    Objective-C

    + (BOOL)isTagSet:(NSString *)tag;

    Swift

    class func isTagSet(_ tag: String!) -> Bool

    Parameters

    tag

    The selected tag.

    Return Value

    Returns YES if found.

  • Returns true if at least one tag is assigned. Note: Tags are case sensitive, High Value and high value are different tags.

      NSLog(@"areAnyTagsSet = %d",[PyzePersonalizationIntelligence areAnyTagsSet:@[@"High value"]]);
    

    Declaration

    Objective-C

    + (BOOL)areAnyTagsSet:(NSArray *)tagsList;

    Swift

    class func areAnyTagsSet(_ tagsList: [Any]!) -> Bool

    Parameters

    tagsList

    The array tag list strings.

    Return Value

    Returns YES if any of the tags is found.

  • Returns true if all tags specified are assigned to user. Note: Tags are case sensitive, High Value and high value are different tags.

     NSLog(@"areAllTagsSet = %d", [PyzePersonalizationIntelligence areAllTagsSet:@[@"loyal", @"whale",@"High value"]]);
    

    Declaration

    Objective-C

    + (BOOL)areAllTagsSet:(NSArray *)tagsList;

    Swift

    class func areAllTagsSet(_ tagsList: [Any]!) -> Bool

    Parameters

    tagsList

    The array tag list strings.

    Return Value

    Returns YES if all of the tags are found.