YMMProfileAttribute 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 birth date attribute. |
-customBool: | Creates a custom attribute with the bool type. |
-customCounter: | Creates a custom attribute of the counter type. |
-customNumber: | Creates a custom attribute with the double type. |
-customString: | Creates a custom attribute with the string type. |
-gender | Creates a gender attribute. |
-name | Creates a name attribute. |
-notificationsEnabled | Creates a NotificationsEnabled attribute. |
-birthDate | Creates a birth date attribute. |
-customBool: | Creates a custom attribute with the bool type. |
-customCounter: | Creates a custom attribute of the counter type. |
-customNumber: | Creates a custom attribute with the double type. |
-customString: | Creates a custom attribute with the string type. |
-gender | Creates a gender attribute. |
-name | Creates a name attribute. |
-notificationsEnabled | Creates a NotificationsEnabled attribute. |
Method descriptions
+birthDate
+ (id<YMMBirthDateAttribute>)birthDate
Creates a birth date attribute.
Returns:
The instance that implements the YMMBirthDateAttribute
protocol.
+customBool:
+ (id<YMMCustomBoolAttribute>)customBool:(NSString *)name
Creates a custom attribute with the bool type.
bool
tab.
name | Attribute name. The value can contain up to 200 characters. |
name | Attribute name. The value can contain up to 200 characters. |
Returns:
The instance that implements the YMMCustomBoolAttribute
protocol.
+customCounter:
+ (id>YMMCustomCounterAttribute>)customCounter:(NSString *)name
Creates a custom attribute of the counter type.
name | Creates a custom attribute of the counter type. |
name | Creates a custom attribute of the counter type. |
Returns:
The instance that implements the YMMCustomCounterAttribute
protocol.
+customNumber:
+ (id<YMMCustomNumberAttribute>)customNumber:(NSString *)name
Creates a custom attribute with the double
type.
name | Creates a custom attribute of the counter type. |
name | Creates a custom attribute of the counter type. |
Returns:
The instance that implements the YMMCustomNumberAttribute
protocol.
+customString:
+ (id<YMMCustomStringAttribute>)customString:(NSString *)name
Creates a custom attribute with the string
type.
name | Attribute name. The value can contain up to 200 characters. |
name | Attribute name. The value can contain up to 200 characters. |
Returns:
The instance that implements the YMMCustomStringAttribute
protocol.
+gender
+ (id<YMMGenderAttribute>)gender
Creates a gender attribute.
Returns:
The instance that implements the YMMGenderAttribute
protocol.
+name
+ (id<YMMNameAttribute>)name
Creates a name attribute.
Returns:
The instance that implements the YMMNameAttribute
protocol.
+notificationsEnabled
+ (id<YMMNotificationsEnabledAttribute>)notificationsEnabled
Creates a NotificationsEnabled attribute.
Returns:
The instance that implements the YMMNotificationsEnabledAttribute
protocol.