/Swivl-iOS-SDK-1

iOS SDK for some ROBOT

Primary LanguageObjective-COtherNOASSERTION

Swivl-iOS-SDK

Swivl SDK for Swivl 2 hardware

How To Get Started

  1. Add to info.plist a Supported external accessory protocols item with the value com.swivl.base

  2. In your pod file:

pod 'Swivl-iOS-SDK', :git => "git@github.com:Swivl/Swivl-iOS-SDK.git"

2. Install the dependencies in your project:

   ```bash
$ pod install
  1. Add #import "SwivlCommonLib.h" to your project.

  2. 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
    }
}