PWMSGAttributeManager Class Reference
Inherits from | NSObject |
---|---|
Declared in | PWMSGAttributeManager.h |
Overview
The PWAttributeManager
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 PWAttributeManager
class.
+ (instancetype)sharedManager
Return Value
The shared instance of the PWAttributeManager
class.
Declared In
PWMSGAttributeManager.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
PWMSGAttributeManager.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
PWMSGAttributeManager.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. This parameter cannot be |
---|---|
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
PWMSGAttributeManager.h