iOS SDK
IMGA Event Centre iOS SDK
IMGA SDK for iOS is library for iOS providing a powerful high-level webview abstractions to interact with the IMGA web app.
Installation
IMGA SDK supports multiple methods for installing the library in a project.
Installation with CocoaPods
To integrate IMGA SDK into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'IMGASDK', :git => 'git@github.com:IMGARENA/front-row-seat-ios-cocoapod.git', :tag => 'v0.12'Installation with SPM
To integrate IMGA SDK into your Swift project using SPM, specify it in your Package.swift
dependencies: [
.package(url: "https://github.com/IMGARENA/front-row-seat-ios-cocoapod", from: "0.12.0")
],Requirements
IMGA SDK requires iOS 14 and xCode 14.1
Usage
Creating an instance
Initialising the SDK (launch)
Launching the SDK with raw data
Launching the SDK with IMGAEventCentreParams object
Launching the SDK and append the IMGA View to a container
Subscribing to status changes
Subscribing to new messages
There are several types of messages/topics
CONTEXT_UPDATE: Topic for covering general UI state updates, for example navigation changes or the user selecting a player in the UI.HANDSHAKE_FAILED: Topic to signify the handshake between Event Centre and your site failed to complete.
Stop the SDK
IMGA SDK is owned and maintained by the IMGA Development team.
Last updated
Was this helpful?