PreEmptive Analytics iOS API  2.0
The official iOS API for sending PreEmptive Analytics data.
<PAAttributeSizeLimiter> Protocol Reference

A protocol which allows the size of string attributes to be limited to a maximum number of characters. More...

Instance Methods

(NSUInteger) - maxmimumSizeForAttribute:onElement:
 Determines the maximum number of characters for an attribute. More...
 

Detailed Description

A protocol which allows the size of string attributes to be limited to a maximum number of characters.

This is to prevent sending unnecessarily large messages if portions of it will be truncated at the server.

Definition at line 14 of file PAAttributeSizeLimiter.h.

Method Documentation

- (NSUInteger) maxmimumSizeForAttribute: (NSString *)  attribute
onElement: (NSString *)  element 

Determines the maximum number of characters for an attribute.

Anything over this amount of raw characters(not bytes and without XML escaping) will be truncated.

Parameters
attributeThe name of the attribute in the server specification.
elementThe name of the element, in the server specification, which contains the attrbute.
Returns
The maximum number of characters for that attribute or NSUIntegerMax (if not limited).

The documentation for this protocol was generated from the following file: