Swivl SDK for Swivl 2 hardware
-
Add to
info.plist
aSupported external accessory protocols
item with the valuecom.swivl.base
-
In your pod file:
pod 'Swivl-iOS-SDK', :git => "[email protected]:Swivl/Swivl-iOS-SDK.git"
2. Install the dependencies in your project:
```bash
$ pod install
-
Add
#import "SwivlCommonLib.h"
to your project. -
Create
SwivlCommonLib
object:
SwivlCommonLib *swivl = [SwivlCommonLib sharedSwivlBaseForDelegate:self];
5. Implement SwivlBaseDelegate protocol
Start/Stop recording
---
To start/stop recording implement ```- (BOOL) appIsRecording;``` method of ```SwivlBaseDelegate``` protocol:
```objc
- (BOOL) appIsRecording
{
return YES; //start recording
return NO; //stop recording
}
To get notification from Swivl when recording state is changed, just implement - (void) setAppRecording: (BOOL ) recording;
method of SwivlBaseDelegate
protocol:
- (void) setAppRecording: (BOOL ) recording
{
if (recording)
{
//reacording was started
}
else
{
//recording was stopped
}
}