# CheckSupportResult
public delegate void CheckSupportResult(int result, string message);
1.回调描述
CheckSupport 的回调函数,检测是否支持直播或直播任务,作为是否展示相关入口依据。
2.返回值
| 参数 | 类型 | 含义 |
|---|---|---|
| result | int | 错误码,<0时不支持直播及直播任务 |
| message | String | 错误描述 |
错误码列举
| 错误码 | 含义 |
|---|---|
| 2 | 仅支持活动页面不支持直播 |
| 1 | 仅支持直播不支持活动页面 |
| 0 | 同时支持一键开播与活动页面 |
| -1 | 系统版本不支持,目前只开发AndroidN机器以上机型 |
| -2 | openGL ES版本不支持,目前支持opengl es3.0以上机型 |
| -3 | 未安装微信 |
| -4 | 微信版本过低,一键开播最低需要微信7.0.15 |
| -5 | 不在白名单内的机型,完成兼容性测试后启用 |
| -6 | 后台回包错误 |
| -7 | 后台回包缺失相关字段 |
| -8 | 网络请求错误 |
| -10 | 不支持活动页面也不支持直播 |
3.示例代码
mJetPackEngine.livePush.OnCheckSupportResult += OnCheckSupportResult;
public void OnCheckSupportResult(int result, string message) {
Debug.Log("[OnCheckSupportResult] --- result: " + result + " message: " + message);
if (result == 0) {
...
}
}