Skip to main content
SDK Version

Customizations

This page guides you on how to customize the Actito iOS SDK to better suit your application’s integration and configuration needs.

Actito options

The ActitoOptions.plist file lets you control and customize various SDK behaviors and appearance settings — such as logging, automatic configuration, push handling, and theming.

To use it, simply create a ActitoOptions.plist file in your Xcode project and make sure it’s included in your app target. All properties are optional, so you only need to include the ones you want to customize.

You can find a full list of available properties here.

Setting keys in code

Instead of relying on the ActitoServices.plist configuration file, it is possible to set those in code. To configure Actito, you must run the following code before any other interactions with the library.

class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.

Actito.shared.configure(
servicesInfo: ActitoServicesInfo(
applicationKey: "",
applicationSecret: ""
),
options: nil
)

// more code ...
}
}

The configure() method should be called before calling Actito.shared.launch() to make sure the correct keys are used. After setting the keys programmatically you can safely delete the ActitoServices.plist file.

Additionally, you need to let Actito know to not configure itself after the application has been launched. To do that, you can set AUTO_CONFIG to NO in your ActitoOptions.plist.

<dict>
<key>AUTO_CONFIG</key>
<false/>
</dict>