ClinicKit Mobile SDK / iOS

iOS ClinicKit Integration

ClinicKit for iOS is made of two frameworks: VSeeKit, which handles video calls, and VSeeClinicCore, which provides the clinic, authentication, intake and visit services on top of it.

Downloads

  1. VSeeKit framework
  2. VSeeClinicCore framework
  3. VSeeClinicUIKit framework
  4. Sample app for iOS

VSeeKit framework

The VSeeKit iOS framework lets you embed VSee functionality in your iOS app. It supports multi-way video calling and chat, with UIs tailored for iPhone and iPad in portrait or landscape orientation. VSeeKit currently requires iOS 11 or later. Going forward, VSeeKit will always support at least one major release before the current version of iOS.

Download and prepare the framework

  1. Download the VSeeKit framework from its code repository.
  2. Prepare the frameworks and libraries it depends on.

VSeeKit requires Xcode 11 and supports iOS 11 and newer. It is packaged as a static framework rather than a dynamic one. Besides the VSeeKit framework, your project must link with these system frameworks and libraries:

  • Accelerate.framework
  • AudioToolbox.framework
  • AVFoundation.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreMedia.framework
  • Foundation.framework
  • Security.framework
  • SystemConfiguration.framework
  • UIKit.framework
  • VideoToolbox.framework
  • libc++.tbd
  • libicucore.tbd
  • libresolv.tbd
  • libz.tbd

VSeeKit also includes a bundle of resources that must sit at the top level of your app: add VSeeKit.bundle to the Copy Bundle Resources phase of your app's build target. Under Build Phases in Xcode, your target should look like this:

Link Binary With Libraries, listing VSeeKit.framework and the required system frameworks

Copy Bundle Resources, listing VSeeKit.bundle

VSeeClinicCore framework

The VSeeClinicCore framework provides the functions and support classes for building healthcare apps on iOS. It needs the VSeeKit framework installed to make video calls.

Step 1: Download the framework

Download the VSeeClinicCore framework from its code repository.

Step 2: Add the framework to your project

  1. Open your project in Xcode.
  2. Drag the VSeeClinicCore framework into the Project Navigator (the left column in Xcode).
  3. In the Add to targets dialog, select the targets that will use the framework, then click Add.

Step 3: Configure build phases

  1. Select your project's target in the Project Navigator.
  2. Select the Build Phases tab.
  3. Expand Link Binary With Libraries to see the frameworks and libraries linked to your project.
  4. Click + to add a framework.
  5. Choose Add Other, find and select the VSeeClinicCore framework you added to your project, and click Add.
  6. Check that VSeeClinicCore.framework is now listed under Link Binary With Libraries.
  7. Add the VSeeClinicCore.bundle file to Copy Bundle Resources.

Copy Bundle Resources, listing VSeeClinicCore.bundle

Link Binary With Libraries, listing VSeeClinicCore.framework

Step 4: Install dependencies

VSeeClinicCore needs these CocoaPods dependencies:

  1. Open your project's Podfile.
  2. Add these lines:
    pod 'MagicalRecord'
    pod 'UICKeyChainStore', '~> 2.1.0'
    pod 'GBDeviceInfo', '~> 4.2.2'
    pod 'NSDictionary+SafeGetters'
    pod 'AFNetworking', '~> 4.0'
    pod 'SDWebImage', '~> 4.4.2'
    pod 'Stripe', '~> 14.0.2'
    pod 'MBProgressHUD', '~> 1.0.0'
  3. Save the Podfile.
  4. In Terminal, go to your project's directory and run:
    pod install
  5. Wait for the dependencies to download and install.
  6. Close your Xcode project and open the newly generated .xcworkspace file.
  7. Build and run your project.

Step 5: Use the framework in your code

Import VSeeClinicCore in your source files, then use its classes and functions like any other in your project:

import VSeeClinicCore

Step 6: Get a VSeeKit key

If you don't have a VSeeKit API key, contact VSee Sales for a free trial key.

Step 7: Get a VSee Clinic API key

Create an API key for your app in the clinic admin dashboard. See Generate your API key. Then put your keys in your App Settings.

Example usage

The sample app repository shows the frameworks in use.

VSeeClinicCore provides services for user authentication, appointment management and communication with healthcare providers. With it you can let users schedule appointments, join virtual visits, and track upcoming appointments and visit history. These pages describe the key services: