Constants
The following constants are available globally.
-
Log level option to show all possible logging output.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeLogLevelVerbose
Swift
let ApptimizeLogLevelVerbose: String
-
Log level option to show additional information to aid with debugging.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeLogLevelDebug
Swift
let ApptimizeLogLevelDebug: String
-
Log level option to show information in addition to warnings and errors.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeLogLevelInfo
Swift
let ApptimizeLogLevelInfo: String
-
Log level option to show all warnings and errors.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeLogLevelWarn
Swift
let ApptimizeLogLevelWarn: String
-
Log level option to show only errors.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeLogLevelError
Swift
let ApptimizeLogLevelError: String
-
Log level option to disable logging entirely.
This is the default option.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeLogLevelOff
Swift
let ApptimizeLogLevelOff: String
-
Sets the amount of time to wait in milliseconds until metadata is available. If this is set to 0, Apptimize will block until metadata is available. If this option is omitted, Apptimize will not block for metadata.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeUpdateMetadataTimeoutOption
Swift
let ApptimizeUpdateMetadataTimeoutOption: String
-
This option controls whether Apptimize will attempt to pair with the development server.
Info.plist
: ApptimizeDevicePairingEnabled (Boolean, default YES)Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeDevicePairingOption
Swift
let ApptimizeDevicePairingOption: String
-
This option controls the amount of logging the Apptimize SDK will output.
Info.plist
: ApptimizeLogLevel (String, [verbose, debug, info, warn, error, off], defaulterror
)Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeLogLevelOption
Swift
let ApptimizeLogLevelOption: String
-
This option controls how long (in milliseconds) Apptimize will wait for tests and their associated data to download.
Info.plist
: ApptimizeDelayUntilTestsAreAvailable (Integer, milliseconds, default 0)Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeDelayUntilTestsAreAvailableOption
Swift
let ApptimizeDelayUntilTestsAreAvailableOption: String
-
This option controls whether Apptimize will automatically import events from third-party analytics frameworks.
Info.plist
: ApptimizeEnableThirdPartyEventImporting (Boolean, default YES)Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeEnableThirdPartyEventImportingOption
Swift
let ApptimizeEnableThirdPartyEventImportingOption: String
-
This option controls whether Apptimize will automatically export events to third-party analytics frameworks.
Info.plist
: ApptimizeEnableThirdPartyEventExporting (Boolean, default YES)Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeEnableThirdPartyEventExportingOption
Swift
let ApptimizeEnableThirdPartyEventExportingOption: String
-
This option governs whether Apptimize will automatically log events for button clicks and table cell activations.
Info.plist
: ApptimizeEnableInteractionEventCollection (Boolean, default NO)Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeEnableInteractionEventCollectionOption
Swift
let ApptimizeEnableInteractionEventCollectionOption: String
-
This option governs whether Apptimize will disable all visual experiments and modifications.
Info.plist
: ApptimizeEnableVisualSupport (Boolean, default YES)Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeEnableVisualSupportOption
Swift
let ApptimizeEnableVisualSupportOption: String
-
A notification with this name is posted whenever an Apptimize test runs. The notification carries a dictionary which contains the following keys:
ApptimizeTestNameUserInfoKey
,ApptimizeVariantNameUserInfoKey
andApptimizeTestFirstRunUserInfoKey
.Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeTestRunNotification
Swift
static let ApptimizeTestRun: NSNotification.Name
-
The name of the test that caused this notification in string format.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeTestNameUserInfoKey
Swift
let ApptimizeTestNameUserInfoKey: String
-
The name of the variant that caused this notification in string format.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeVariantNameUserInfoKey
Swift
let ApptimizeVariantNameUserInfoKey: String
-
Whether this is the first time Apptimize has run this variant since enrollment in boolean format.
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeTestFirstRunUserInfoKey
Swift
let ApptimizeTestFirstRunUserInfoKey: String
-
This notification is posted whenever an Apptimize recalculates its configuration. The enrolled tests may or may not have changed.
The dynamic variable values may or may not have changed.
This happens at various times:
- new information from server
- device properties or custom attributes changed
- and a few other cases
Declaration
Objective-C
extern NSString *const _Nonnull ApptimizeTestsProcessedNotification
Swift
static let ApptimizeTestsProcessed: NSNotification.Name