Initialization
Steps to initialize SnapscreenFramework functionality.
Last updated
Was this helpful?
Steps to initialize SnapscreenFramework functionality.
For any class that requires access to the SnapscreenFramework functionality, add the following line:
import SnapscreenFrameworkIn order to initialize Snapscreen, call the following class method in AppDelegate in application:didFinishLaunchingWithOptions:
Snapscreen.setup(
withClientId: "your-client-id",
clientSecret: "your-client-secret",
environment: .production
)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:
Snapscreen.instance?.country = "US"
Snapscreen.instance?.usState = "NJ"Once Snapscreen is initialized, it can be retrieved by calling:
Last updated
Was this helpful?
Was this helpful?
Snapscreen.instance