PWMEAttributeManager Class Reference

Inherits from NSObject
Declared in PWMEAttributeManager.h

Overview

The PWMEAttributeManager class is the central point for fetching and updating attributes associated with the device or user. You use an instance of this class to fetch and update profile and user attributes.

+ sharedManager

Returns the shared instance of the PWMEAttributeManager class.

+ (instancetype)sharedManager

Return Value

The shared instance of the PWMEAttributeManager class.

Declared In

PWMEAttributeManager.h

– fetchProfileAttributeMetadataWithCompletion:

Retrieves all profile attribute Metadata.

- (void)fetchProfileAttributeMetadataWithCompletion:(PWFetchAttributeMetadataBlock)completion

Parameters

completion

A block that will be executed when the fetch is complete.

Declared In

PWMEAttributeManager.h

– fetchProfileAttributesWithCompletion:

Retrieves all profile attributes associated with this device.

- (void)fetchProfileAttributesWithCompletion:(PWFetchAttributesBlock)completion

Parameters

completion

A block that will be executed after the fetch is compete.

Declared In

PWMEAttributeManager.h

– updateProfileAttributes:completion:

Update profile attributes to be associated with the device.

- (void)updateProfileAttributes:(NSDictionary *)attributes completion:(PWUpdateAttributesBlock)completion

Parameters

attributes

The attributes that you would like to associate with the device.

completion

A block that will be executed after the update is complete.

Discussion

All attributes that you wish to be associated with this device must be in the attributes dictionary. Any items omitted will be removed.

Declared In

PWMEAttributeManager.h