Skip to main content
Skip table of contents

Initialize SDK: using Objective C

Import Dropthought SDK

The first step to using SDK using Swift is importing. Use the below code snippet to import Dropthought SDK.

CODE
#import "Dropthought.h"

Initialize SDK

Use the below code snippet to initialize SDK. Follow the steps on the Fetching API Key from your Dropthought Account to get the API key.

In AppDelegate.swift

CODE
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Add this line to init our SDK

    [[Dropthought instance] init:launchOptions apiKey:@"{YOUR_API_KEY}"];

    // ...

    return YES;

}


feedback-img.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.