AMAProfileAttribute class

Methods of the class create predefined and custom profile attributes.

AppMetrica lets you create up to 100 custom attributes.

Instance methods

+birthDate

Creates a predefined birth date / age attribute.

+customBool:

Creates a custom attribute with the bool type.

+customCounter:

Creates a custom attribute with the tag type.

+customNumber:

Creates a custom attribute with the double type.

+customString:

Creates a custom attribute with the string type.

+gender

Creates a predefined gender attribute.

+name

Creates a predefined name attribute.

+notificationsEnabled

Creates a predefined notification status attribute.

Method descriptions

+birthDate

+ (id<AMABirthDateAttribute>)birthDate

Creates a birth date attribute.

Alert

AppMetrica doesn't display predefined attributes in the web interface if ProfieId sending isn't configured.

Returns:

The instance that implements the AMABirthDateAttribute protocol.

+customBool:

+ (id<AMACustomBoolAttribute>)customBool:(NSString *)name

Creates a custom attribute with the bool type.

Parameters:

name

Attribute name. The value can contain up to 200 characters.

Returns:

The instance that implements the AMACustomBoolAttribute protocol.

+customCounter:

+ (id<AMACustomCounterAttribute>)customCounter:(NSString *)name

Creates a custom attribute of the tag type.

Parameters:

name

Creates a custom attribute with the tag type.

Returns:

The instance that implements the AMACustomCounterAttribute protocol.

+customNumber:

+ (id<AMACustomNumberAttribute>)customNumber:(NSString *)name

Creates a custom attribute with the double type.

Parameters:

name

Creates a custom attribute with the tag type.

Returns:

The instance that implements the AMACustomNumberAttribute protocol.

+customString:

+ (id<AMACustomStringAttribute>)customString:(NSString *)name

Creates a custom attribute with the string type.

Parameters:

name

Attribute name. The value can contain up to 200 characters.

Returns:

The instance that implements the AMACustomStringAttribute protocol.

+gender

+ (id<AMAGenderAttribute>)gender

Creates a gender attribute.

Alert

AppMetrica doesn't display predefined attributes in the web interface if ProfieId sending isn't configured.

Returns:

The instance that implements the AMAGenderAttribute protocol.

+name

+ (id<AMANameAttribute>)name

Creates a name attribute.

Alert

AppMetrica doesn't display predefined attributes in the web interface if ProfieId sending isn't configured.

Returns:

The instance that implements the AMANameAttribute protocol.

+notificationsEnabled

+ (id<AMANotificationsEnabledAttribute>)notificationsEnabled

Creates a predefined notification status attribute.

Alert

AppMetrica doesn't display predefined attributes in the web interface if ProfieId sending isn't configured.

Returns:

The instance that implements the AMANotificationsEnabledAttribute protocol.