# Classes

The following classes are available globally.

- `ApptimizeVariable`

  This interface is used to create and retrieve dynamic variables for both experiments and Feature Variables.

  The factory methods are used to create and register dynamic variables with the SDK. As they need to be declared prior to setting up an experiment, they should be called as early as possible during app execution, such as in `didFinishLaunchingWithOptions`.

  All the factory methods return a reference to the created dynamic variable.

  As dynamic variables are expected to be declared ahead of time during app startup, getters are provided to retrieve those dynamic variables at time of use.

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeVariable : NSObject

  Swift

      class ApptimizeVariable : NSObject

- `ApptimizeVariableString`

  ApptimizeVariableString is a dynamic variable which contains an NSString.

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeVariableString : ApptimizeVariable

  Swift

      class ApptimizeVariableString : ApptimizeVariable

- `ApptimizeVariableBool`

  ApptimizeVariableBool is a dynamic variable which contains a bool.

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeVariableBool : ApptimizeVariable

  Swift

      class ApptimizeVariableBool : ApptimizeVariable

- `ApptimizeVariableInteger`

  ApptimizeVariableInteger is a dynamic variable which contains a signed or unsigned integer.

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeVariableInteger : ApptimizeVariable

  Swift

      class ApptimizeVariableInteger : ApptimizeVariable

- `ApptimizeVariableDouble`

  ApptimizeVariableDouble is a dynamic variable which contains a double floating point number.

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeVariableDouble : ApptimizeVariable

  Swift

      class ApptimizeVariableDouble : ApptimizeVariable

- `ApptimizeVariableArray`

  ApptimizeVariableArray is a dynamic variable which contains an array of a specified type (string, bool, integer, double).

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeVariableArray<__covariant ContainedType> : ApptimizeVariable

  Swift

      class ApptimizeVariableArray<ContainedType> : ApptimizeVariable where ContainedType : AnyObject

- `ApptimizeVariableDictionary`

  ApptimizeVariableDictionary is a dynamic variable which contains a dictionary of values of a specified type (string, bool, integer, double) keyed by strings.

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeVariableDictionary<__covariant ContainedType>
          : ApptimizeVariable

  Swift

      class ApptimizeVariableDictionary<ContainedType> : ApptimizeVariable where ContainedType : AnyObject

### Apptimize Code Block

- `ApptimizeCodeBlock`

  Wraps a code block with its corresponding name.

  Useful in Swift for passing closures to `+runTest:withBaseline:apptimizeCodeBlocks:andOptions:`

  See more

  #### Declaration

  Objective-C

      @interface ApptimizeCodeBlock : NSObject

  Swift

      class ApptimizeCodeBlock : NSObject

### Notifications

- `Apptimize`

  The Apptimize interface is the main interaction point with the Apptimize SDK for developers.

  Getting Started

  Add your Apptimize App Key to your application’s Info.plist e.g.

       ApptimizeAppKey = "AaaaABbbbBCcccCDdddDEeeeEFfffF" // Type: String; Without quotes.

  For more information on how to get started using the Apptimize Library see: https://apptimize.com/docs/installation/ios-installation.html

  See more

  #### Declaration

  Objective-C

      @interface Apptimize : NSObject

  Swift

      class Apptimize : NSObject

© 2025 Apptimize Inc.. All rights reserved. (Last updated: 2025-10-10)

Generated by jazzy ♪♫ v0.14.3, a Realm project.