The Privacy Manager allows modifying the SDK's enabled features at runtime.
Privacy Manager Features:
push
when enabled, the browser may register for push notificationsin_app_automation
when enabled, the In-App Automation engine will run; this provides Scenes and Embedded contenttags_and_attributes
allows setting of tags, attributes, and subscription listscontacts
allows usage of the UaSDK.Contact interface, which can associate the current channel to other channelsfeature_flags
allows using the FeatureFlagManageranalytics
allows collecting analytics-specific events
Example
const sdk = await UA
await sdk.privacyManager.enable('push', 'in_app_automation')
await sdk.privacyManager.disable('analytics')
Members
listEnabled :Promise.<Array>
Retrieve the list of currently enabled features.
Type:
-
Promise.<Array>
Methods
disable(feature) → {Promise.<void>}
Disable all features
Parameters:
Name | Type | Description |
---|---|---|
feature |
'all'
|
enable all features |
Returns:
- Type:
-
Promise.<void>
disable(…features) → {Promise.<void>}
Disable the given features
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
features |
PrivacyManagerFeature
|
<repeatable> |
the features to be enabled |
Returns:
- Type:
-
Promise.<void>
enable(feature) → {Promise.<void>}
Enable all features
Parameters:
Name | Type | Description |
---|---|---|
feature |
'all'
|
enable all features |
Returns:
- Type:
-
Promise.<void>
enable(…features) → {Promise.<void>}
Enable the given features
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
features |
PrivacyManagerFeature
|
<repeatable> |
the features to be enabled |
Returns:
- Type:
-
Promise.<void>