---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://appmetrica.yandex.com.tr/docs/en/sdk/ios/analytics/objectivec/AMANotificationsEnabledAttribute.md
  - https://appmetrica.yandex.com.tr/docs/ru/sdk/ios/analytics/objectivec/AMANotificationsEnabledAttribute.md
  - https://appmetrica.yandex.com.tr/docs/zh/sdk/ios/analytics/objectivec/AMANotificationsEnabledAttribute.md
  - href: https://appmetrica.yandex.com.tr/docs/zh/sdk/ios/analytics/objectivec/AMANotificationsEnabledAttribute.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

# AMANotificationsEnabledAttribute 协议

该协议定义了更新用户资料通知状态的方法。

它表示用户是否已启用通知。

## Instance methods {#instance_summary}

#|
|| -[withValue:](#method_withValue) | 更新属性值。 ||
|| -[withValueReset](#method_withValueReset) | 重置属性值。 ||
|#

## Method descriptions {#method_detail}

### -withValue: {#method_withValue}

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

更新属性值。

**参数：**

#|
|| `value` | Attribute value: `是`或`否`. ||
|#

**返回：**

The `AMAUserProfileUpdate` 类实例。

### -withValueReset {#method_withValueReset}

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

重置属性值。

**返回：**

该 `AMAUserProfileUpdate` 类实例。
