PrivacyManager

PrivacyManager

The Privacy Manager allows modifying the SDK's enabled features at runtime.

Privacy Manager Features:

  • push when enabled, the browser may register for push notifications
  • in_app_automation when enabled, the In-App Automation engine will run; this provides Scenes and Embedded content
  • tags_and_attributes allows setting of tags, attributes, and subscription lists
  • contacts allows usage of the UaSDK.Contact interface, which can associate the current channel to other channels
  • feature_flags allows using the FeatureFlagManager
  • analytics 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>