1.先初始化小班SDK对象
  • self.talkfunSDK = [[TalkfunSDKLive alloc] initWithAccessToken:token whiteboard:view configureCameraContainerView:self.cameraView ];
2.通过sdk对象操作画板类
  • self.talkfunSDK.rtcManager.whiteboard

*



#import <Foundation/Foundation.h>
typedef enum: NSUInteger{
    TalkfunSDKWhiteboardTypeStroke,//画笔
    TalkfunSDKWhiteboardTypeCircle,//圆形
    TalkfunSDKWhiteboardTypeRectangle,//矩形
    TalkfunSDKWhiteboardTypeStraightLine,//直线
    TalkfunSDKWhiteboardTypeDottedLine,//虚线
    TalkfunSDKWhiteboardTypeDelete,//框删除
    TalkfunSDKWhiteboardTypeArrow,//箭头
    TalkfunSDKWhiteboardTypeText//文本


}TalkfunSDKWhiteboardType;
//颜色
typedef enum: NSUInteger{

    TalkfunSDKWhiteboardColorTypeBlackColor,  //黑
    TalkfunSDKWhiteboardColorTypeRedColor,    //红
    TalkfunSDKWhiteboardColorTypeYellowColor, //黄
    TalkfunSDKWhiteboardColorTypeGreenColor,       //绿
    TalkfunSDKWhiteboardColorTypeBlueColor,        //蓝
    TalkfunSDKWhiteboardColorTypeBrownColor ,      //棕
    TalkfunSDKWhiteboardColorTypeWhiteColor   ,    //白
    TalkfunSDKWhiteboardColorTypeCyanColor  ,     //青色
    TalkfunSDKWhiteboardColorTypePurpleColor       //紫色

}TalkfunSDKWhiteboardColorType;

//画笔大小
typedef enum: NSUInteger{
    TalkfunPlatformDrawLineWidthSmall = 2,          //小
    TalkfunPlatformDrawLineWidthMiddle = 4,         //中
    TalkfunPlatformDrawLineWidthBig = 6,            //大
    TalkfunPlatformDrawLineWidthLarge = 8,
    TalkfunPlatformDrawLineWidthHuge = 10           //特大

}TalkfunPlatformDrawLineWidth;


@interface TalkfunSDKWhiteboard : NSObject

//涂鸦权限  默认 为 NO
@property (nonatomic,assign) BOOL drawPower;

//画板类型 ->
@property (nonatomic, assign) TalkfunSDKWhiteboardType                 drawType;
//画笔宽度
@property (nonatomic, assign) TalkfunPlatformDrawLineWidth             lineWidth;
//画笔颜色(选择的)
@property (nonatomic, assign) TalkfunSDKWhiteboardColorType            lineColor;

//rgb的color
- (void)setLineRgbColor:(UIColor*)rgbColor;

@end
Copyright Talkfun all right reserved,powered by Gitbook修订时间: 2020-05-13 15:42:51

results matching ""

    No results matching ""