myinterview-sdk 0.1.3

myinterview-sdk 0.1.3

Amir Nuriev 维护。



 
依赖
AWSCore>= 0
AWSS3>= 0
 

  • 作者:
  • Amir Nuriev

pod License Platform

MyInterview iOS SDK

将视频集成到您的招聘解决方案中,并增强雇主的决定过程。要获取所需的凭证,请访问 myInterview.com

安装

打开 终端。如果您机器上没有安装 cocoapods,请输入

sudo gem install cocoapods

更多信息请访问 CocoaPods 入门
然后在 终端 中导航到 "您的 XCode 项目根目录"。
(您的 .xcodeproj 文件所在位置) 并输入

pod init

然后在终端中打开您的 podfile

open -a Xcode Podfile

在您的 Podfile 中输入

pod 'myinterview-sdk'

取消注释 platform :ios, '9.0'。如果您使用 Swift,取消注释 use_frameworks!。完成对 podfile 的编辑后,保存并关闭 XCode。然后在终端中输入以下命令将 pod 安装到项目中:

pod install

别忘了在您的应用 Info.plist 中为 NSCameraUsageDescriptionNSMicrophoneUsageDescription 键提供描述。

初始化 & 显示

let config = MIConfig.init("apiKey")
let question = MIQuestion.init("Tell us about yourself")
MIWidget.start(from: self, with: config, questions: questions)

apiKey:您自己的 myInterviewKey

finished:布尔标志。如果面试完成并上传则为 True,否则为 False。

interviewId:创建的面试 ID

self:当前展示的视图控制器,或面试完成后将再次显示的视图控制器

配置

MIConfig

let config = MIConfig.init("apiKey")
config.preparationTime = 20
config.hideQuestions = true

preparationTime: 如果 hideQuestion == true,用户可以用来准备的时间。默认为30。

hideQuestions: 如果 hideQuestions == true,则在按下“开始录制”按钮之前,用户将不会看到问题。默认为false。

MIQuestion

let question = MIQuestion.init("Tell us about yourself")
question.partDuration = 30
question.numOfRetakes = 4

partDuration: 本部分面试的持续时间(以秒为单位),默认为30。

numOfRetakes: 用户对单个部分可以重试的次数,默认为0。可以是0到9之间的任何数字。

示例

let config = MIConfig.init("qDp2egprFa")
        config.preparationTime = 20
        config.hideQuestions = false
        let question1 = MIQuestion.init("Tell us about yourself.")
        question1.partDuration = 30
        question1.numOfRetakes = 4
        let questions = [
             question1,
             MIQuestion.init("This is second question"),
             MIQuestion.init("This is third question"),
        ];
        
        MIWidget.start(from: self, with: config, questions: questions)

许可协议

Copyright 2018 Myinterview Solutions Pty Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://apache.ac.cn/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.