PrivacyManager
The privacy manager allow enabling/disabling features in the SDK that require user data. The SDK will not make any network requests or collect data if all features our disabled, with a few exceptions when going from enabled -> disabled. To have the SDK opt-out of all features on startup, set the default enabled features in the AirshipConfig to Feature.NONE, or in the airshipconfig.properties file with enabledFeatures = none
.
Some features might offer additional opt-in settings directly on the module. For instance, enabling Feature.PUSH will only enable push message delivery, however you still need to opt-in to com.urbanairship.push.PushManager.setUserNotificationsEnabled before notifications will be allowed.
If any feature is enabled, the SDK will collect and send the following data:
Channel ID
Contact ID
Locale
TimeZone
Platform
Opt in state (push and notifications)
SDK version
Push provider (HMS, FCM, ADM)
Manufacturer (if Huawei)
Constructors
Types
Properties
Functions
Disables features, removing them from the set of currently enabled features.
Enables features, adding them to the set of currently enabled features.
Checks if any of the given features are enabled.
Checks if all of the given features are enabled.
Sets the current enabled features, replacing any currently enabled features with the given set.