UAPrivacyManager

Objective-C

@interface UAPrivacyManager : NSObject

Swift

class UAPrivacyManager : NSObject

The privacy manager allow enabling/disabling features in the SDK. 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 UAFeaturesNone, 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
  • Locale
  • TimeZone
  • Platform
  • Opt in state (push and notifications)
  • SDK version
  • Accengage Device ID (Accengage module for migration)
  • Gets the current enabled features.

    Declaration

    Objective-C

    @property (nonatomic) UAFeatures enabledFeatures;

    Swift

    var enabledFeatures: UAFeatures { get set }

    Return Value

    The enabled features.

  • Enables features.

    Declaration

    Objective-C

    - (void)enableFeatures:(UAFeatures)features;

    Swift

    func enable(_ features: UAFeatures)

    Parameters

    features

    The features to enable.

  • Disables features.

    Declaration

    Objective-C

    - (void)disableFeatures:(UAFeatures)features;

    Swift

    func disableFeatures(_ features: UAFeatures)

    Parameters

    features

    The features to disable.

  • Checks if a given feature is enabled.

    Declaration

    Objective-C

    - (BOOL)isEnabled:(UAFeatures)feature;

    Swift

    func isEnabled(_ feature: UAFeatures) -> Bool

    Parameters

    feature

    The features to check.

    Return Value

    True if the provided features are enabled, otherwise false.

  • Checks if any feature is enabled.

    Declaration

    Objective-C

    - (BOOL)isAnyFeatureEnabled;

    Swift

    func isAnyFeatureEnabled() -> Bool

    Return Value

    True if any feature is enabled, otherwise false.