聆客开放平台

# initYXTLiveSdk

云学堂直播-SDK初始化。

# 输入

继承标准对象输入,扩展属性描述

名称 数据类型 必填 默认值 描述
environment string 运行环境,值有Develop、Ucstable、Production、Feature
accessType string 接入模式,值有Inner、ForeignMiniCourse、ForeignLive。(该参数iOS无效)
enableLog bool 日志是否打开。(该参数iOS无效)

# 输出

继承标准对象输出,无扩展属性

# 示例代码

app.link.initYXTLiveSdk(example_environment, example_accessType, example_enableLog, result => {
    bui.alert('sdk init success')
},
error => {
    bui.alert(error);
})