版本支持: v1.0.0+
接口概述: 设置分享内容的方向
接口定义
- (void)setContentOrientation:(NemoVideoOrientation)orientation;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
orientation | 是 | 无 | 方向值 |
返回值: 无
版本支持: v1.0.0+
接口概述: 开始分享content,分享屏幕仅支持iOS12及以上系统
接口定义
- (void)startContentSharing:(NemoShareContentType)type enableAnnotation:(BOOL)enableAnnotation bundleID:(NSString *_Nullable)bundleID;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
type | 是 | 无 | 类型 | |
enableAnnotation | BOOL | 是 | 0 | 是否开启批注,只有type=NemoShareContentType_Image时,此参数有效 |
bundleID | NSString* | 是 | 无 | extension bundle id |
返回值: 无
版本支持: v1.0.0+
接口概述: 发送数据
接口定义
- (void)sendContentMsg:(NemoContent *)content;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
content | 是 | 无 | type:类型 image:发送的图片数据,type = NemoShareContentType_Image 时有效 imageFrameRate:发送图片帧率 type = NemoShareContentType_Image 时有效,默认5针 |
返回值: 无
版本支持: v1.0.0+
接口概述: 停止分享
接口定义
- (void)stopContentSharing;
接口参数: 无
返回值: 无
版本支持: v1.0.0+
接口概述: 扩展进程开启时初始化配置
- (void)extensionStartSampleHandlerWithHandler:(RPBroadcastSampleHandler *)handler message:(NSString *_Nullable)message;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
handler | RPBroadcastSampleHandler * | 是 | 无 | 回调 |
message | NSString * | 否 | 提示语 | 进程结束时系统Alert提示内容,传空时不提示 |
返回值: 无
版本支持: v1.0.0+
接口概述: 扩展进程结束
- (void)extensionFinished;
接口参数: 无
返回值:无
版本支持: v1.0.0+
接口概述: 发送共享屏幕数据
- (void)extensionProcessSampleBuffer:(CMSampleBufferRef)sampleBuffer
withType:(RPSampleBufferType)sampleBufferType;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
sampleBuffer | CMSampleBufferRef | 是 | 无 | 数据 |
sampleBufferType | RPSampleBufferType | 是 | 无 | 数据类型 |
返回值: 无