Skip to content

appyist/UserVision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

UserVision

Installation

Cocoapods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate UserVision into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
  pod 'UserVision'
end

Then, run the following command:

$ pod install

Manually

UserVision does not provide Dynamic Framework support yet.

Requirement

  • Swift 3.0, 3.1, 3.2 or Objective C
  • iOS 9.0+
  • Alamofire 4.4 (If used in your project)

Getting Started

Add UVAuthEmail and UVAuthSecret key-value pairs to your project's info.plist file.

credentials_screenshot

These fields are required and will be provided by UserVision.

Add Privacy - Microphone Usage Description key-value pair to project's info.plist file.

microphoneUsage_screenshot

This field is required if you're planning to record audio with UserVision.

Usage

Setting Up AppDelegate.Swift
  1. Import UserVision in your Appdelegate.swift
import UserVision
  1. Initialize UserVision in your didFinishLaunchingWithOptions function.

Parameters:

  • rootViewController -> UIViewController

  • type -> RecordType (Optional parameter, default value is .audioScreen)

    .screen Records only screen without audio.

    .audioScreen Records screen and audio at the same time. (Recommended)

  • quality -> RecordQuality (Optional parameter, default value is .mid)

    .low fps = 5

    .mid fps = 10 (Recommended)

    .high fps = 18

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        self.window = UserVision.with(rootViewController: (window?.rootViewController)!, type: .audioScreen, quality: .mid)
        return true
    }
  1. Edit your applicationDidBecomeActive and applicationWillTerminated.
func applicationDidBecomeActive(_ application: UIApplication) {
        UserVision.shared.startSession()
}

func applicationWillTerminate(_ application: UIApplication) {
        UserVision.shared.stopSession()
}
  1. If you want to end recording when home button is pressed, you can optionally call stopSession() at applicationDidEnterBackground.
func applicationDidEnterBackground(_ application: UIApplication) {
        UserVision.shared.stopSession()
}
Start Recording
UserVision.shared.startSession()
Stop Recording
UserVision.shared.stopSession()

Credits

UserVision is built and maintained by Appyist.

Appyist

Appyist develops software and designs that redefine borders on Apple platforms; trains young people by the values of culture they have created and develops a perception of quality that is assessed by the values of passion while bringing together the madly passionate ones in Turkey at monthly TurkishKit events.

License

UserVision is released under the Apache License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published