Skip to content

sebastjanm/Swivl-iOS-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 => "[email protected]: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
    }
}

About

Swivl SDK for Swivl 2 hardware

Resources

License

Stars

Watchers

Forks

Packages

No packages published