---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://appmetrica.yandex.com.tr/docs/en/sdk/ios/analytics/objectivec/AMAGenderAttribute.md
  - https://appmetrica.yandex.com.tr/docs/ru/sdk/ios/analytics/objectivec/AMAGenderAttribute.md
  - https://appmetrica.yandex.com.tr/docs/zh/sdk/ios/analytics/objectivec/AMAGenderAttribute.md
  - href: https://appmetrica.yandex.com.tr/docs/zh/sdk/ios/analytics/objectivec/AMAGenderAttribute.md
    type: text/markdown
    title: Markdown version
  - href: https://appmetrica.yandex.com.tr/docs/zh/llms.txt?revision=r22089357
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com.tr/docs/zh/llms.txt?revision=r22089357

# AMAGenderAttribute 协议

该协议定义了更新用户个人资料性别的方法。

## Instance methods {#instance_summary}

#|
|| [-withValue:](#method_withValue) | 使用来自 [AMAGenderType](https://appmetrica.yandex.com.tr/docs/zh/sdk/ios/analytics/objectivec/AMAGenderType.md) 枚举的指定值更新属性值。 ||
|| [-withValueReset](#method_withValueReset) | 重置属性值。 ||
|#

## Method descriptions {#method_detail}

### -withValue: {#method_withValue}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValue:(AMAGenderType)value
```

使用来自 [AMAGenderType](https://appmetrica.yandex.com.tr/docs/zh/sdk/ios/analytics/objectivec/AMAGenderType.md) 枚举的指定值更新属性值。

**参数：**

#|
|| `value` | 来自 [AMAGenderType](https://appmetrica.yandex.com.tr/docs/zh/sdk/ios/analytics/objectivec/AMAGenderType.md) 枚举的值。 ||
|#

**返回：**

The `AMAUserProfileUpdate` 类实例。

### -withValueReset {#method_withValueReset}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValueReset
```

重置属性值。

**返回：**

The `AMAUserProfileUpdate` 类实例。
