AirshipPrivacyManager
public protocol AirshipPrivacyManager : AnyObject, Sendable
The privacy manager allow enabling/disabling features in the SDK.
The SDK will not make any network requests or collect data if all features are 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 Config to an empty option set, or in the
airshipconfig.plist file with enabledFeatures = none.
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
-
The current set of enabled features.
Declaration
Swift
var enabledFeatures: AirshipFeature { get set } -
Enables features. This will append any features to the
enabledFeaturesproperty.Declaration
Swift
func enableFeatures(_ features: AirshipFeature)Parameters
featuresThe features to enable.
-
Disables features. This will remove any features to the
enabledFeaturesproperty.Declaration
Swift
func disableFeatures(_ features: AirshipFeature)Parameters
featuresThe features to disable.
-
Checks if a given feature is enabled.
Declaration
Swift
func isEnabled(_ feature: AirshipFeature) -> BoolParameters
featureThe features to check.
Return Value
True if the provided features are enabled, otherwise false.
-
Checks if any feature is enabled.
Declaration
Swift
func isAnyFeatureEnabled() -> BoolReturn Value
trueif a feature is enabled, otherwisefalse.
View on GitHub