> For the complete documentation index, see [llms.txt](https://docs.snapodds.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snapodds.com/docs/mobile-sdk/ios/snapodds-operator/initialization.md).

# Initialization

### Import SnapscreenFramework

For any class that requires access to the SnapscreenFramework functionality, add the following line:

```swift
import SnapscreenFramework
```

### Initialization

In order to initialize Snapscreen, call the following class method in **AppDelegate** in **application:didFinishLaunchingWithOptions**:

```swift
Snapscreen.setup(
    withClientId: "your-client-id", 
    clientSecret: "your-client-secret", 
    environment: .production
)
```

### Additional information

To improve performance, SnapOdds requires basic locational information to be provided. Set the users country and US state information within the SDK using the parameters **country** and **usState**:

```swift
Snapscreen.instance?.country = "US"
Snapscreen.instance?.usState = "NJ"
```

### Accessing SDK instance

Once Snapscreen is initialized, it can be retrieved by calling:

```swift
Snapscreen.instance
```
