iOS SDK (Core)
Getting Started
7 min
the sdk provides the nwcore singleton class through which you can access all of the sdks functionalities your app needs the ` privacy microphone usage description ` in the info plist for recording audio, if second screen sync should be available initialize sdk to use the sdk in a class, import the following import nwcoresdk the first step to initialize the sdk is to call the nwcore singleton let nwcore = nwcore shared start w atching experience there are three core plugins that handle playback, sync, and any feature enabled in the overlay they are as follows // mandatory properties nwcore appid = "\<app id>" let expmanifestid string = "\<manifest id>" syncservice (optional) the sync service handles all sync related tasks it's an optional plugin that relies on a smds endpoint, a channel group and a library if omitted, no sync functionality will be available in the experience // sync properties let smdsendpoint url = url(string "\<smds endpoint>") let libraryid string = "\<library id"> let audiosyncmode = channel // library | channel let syncmode = sync optional // sync only | sync optional // optional sync properties let directsyncid string? // get a new sync service instance let syncservice nwaudiosyncservice = nwcore syncservice(expmanifestid expmanifestid, syncconfig syncconfig, audiosyncmode audiosyncmode, smdsendpoint smdsendpoint, libraryid libraryid, directsyncid directsyncid) experienceplaybackservice the experienceplaybackservice is the engine that handles all playback experience related features the sync service is an optional injection to the experience playback service let experienceplaybackservice = nwcore experienceplaybackservice(expmanifestid expmanifestid, syncservice syncservice) experienceviewcontroller you can call a new view controller for the given experience with above injected options it takes a guioverlayurl as property to load the respective gui see guides & tutorials docid\ ippr2twqdxeowi48ti62 on how to use a custom gui overlay let videocontroller = nwcore expviewcontroller(experienceplaybackservice experienceplaybackservice) presenting the view controller on top of the current view stack will open the experience and start the playback depending on your configuration , an event specific experience or the default experience will be loaded and the second screen sync option will be available, or not for more information about the different options, please check the guides & tutorials docid\ iw3qlop9opptsdgmgjw z chapter