Skip to content

Commit

Permalink
Add appliance-plugin api
Browse files Browse the repository at this point in the history
  • Loading branch information
AderanFeng committed Jul 4, 2024
1 parent b228660 commit 0b6328e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class WhiteSdkConfiguration extends WhiteObject {
private boolean enableRtcIntercept = false;
private boolean enableRtcAudioEffectIntercept = false;
private boolean enableSyncedStore = false;
private boolean enableAppliancePlugin = false;
private boolean disableNewPencilStroke = false;
private LoggerOptions loggerOptions;
private String appIdentifier;
Expand Down Expand Up @@ -575,6 +576,14 @@ public void setApiHosts(List<String> apiHosts) {
this.apiHosts = apiHosts;
}

public boolean isEnableAppliancePlugin() {
return enableAppliancePlugin;
}

public void setEnableAppliancePlugin(boolean enableAppliancePlugin) {
this.enableAppliancePlugin = enableAppliancePlugin;
}

/**
* 白板上绘画的渲染模式。
*
Expand Down
6 changes: 6 additions & 0 deletions sdk/src/main/java/com/herewhite/sdk/domain/Appliance.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,10 @@ public class Appliance {
* 用于擦除局部铅笔笔迹的橡皮工具。该工具仅对 NewPencil 生效,使用前需要先设置 disableNewPencil 为 false
*/
public final static String PENCIL_ERASER = "pencilEraser";

/**
* 激光铅笔
* 该工具只在开启 WhiteSdkConfiguration.enableAppliancePlugin 后生效
*/
public final static String LASER_PENCIL = "laserPen";
}
10 changes: 10 additions & 0 deletions sdk/src/main/java/com/herewhite/sdk/domain/MemberState.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public class MemberState extends WhiteObject {
*/
private Integer pencilEraserSize;

private StrokeType strokeType;

public MemberState() {
}

Expand Down Expand Up @@ -220,4 +222,12 @@ public Integer getPencilEraserSize() {
public void setPencilEraserSize(Integer pencilEraserSize) {
this.pencilEraserSize = pencilEraserSize;
}

public StrokeType getStrokeType() {
return strokeType;
}

public void setStrokeType(StrokeType strokeType) {
this.strokeType = strokeType;
}
}
17 changes: 17 additions & 0 deletions sdk/src/main/java/com/herewhite/sdk/domain/StrokeType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.herewhite.sdk.domain;

import com.google.gson.annotations.SerializedName;

/**
* 图形工具。
*/
public enum StrokeType {
@SerializedName("Normal")
Normal,
@SerializedName("Stroke")
Stroke,
@SerializedName("Dotted")
Dotted,
@SerializedName("LongDotted")
LongDotted,
}

0 comments on commit 0b6328e

Please sign in to comment.