# 自定义教具与样式 (/zh-CN/realtime-media/whiteboard/whiteboard-sdk/build/appliance-plugin/custom-tools/ios) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). 适用于 **Whiteboard iOS SDK 2.16.147**。先按[插件介绍](/zh-CN/realtime-media/whiteboard/whiteboard-sdk/build/appliance-plugin/overview)启用插件,在入房成功后提交当前用户的教具状态。 ```objc WhiteMemberState *state = [WhiteMemberState new]; state.currentApplianceName = AppliancePencil; state.strokeColor = @[@32, @102, @255]; state.strokeWidth = @4; state.strokeOpacity = @0.8; [room setMemberState:state]; ``` | 字段 | 用途 | | --- | --- | | currentApplianceName | Selector/Pencil/Shape/Text 等教具切换 | | strokeColor / strokeWidth / strokeOpacity | RGB 颜色、粗细、线条透明度 | | shapeType / fillColor / fillOpacity | 图形类型、填充颜色和透明度 | | textColor / textSize | 文字颜色和字号 | | pencilEraserSize | 局部橡皮尺寸 | `WhiteRoomConfig.appliancePluginOptions.extras` 支持插件已开放的可序列化配置,例如 `dottedStroke`、`longDottedStroke`、`normalStroke`、`textEditor`、`strokeWidth`、`pencilEraser`、`overwriteSelectorStyles`。在入房前设置: ```objc WhiteAppliancePluginOptions *options = [WhiteAppliancePluginOptions new]; options.extras = @{ @"useBackgroundThread": @YES, @"normalStroke": @{ @"lineCap": @"round" }, @"dottedStroke": @{ @"lineCap": @"round", @"segment": @1, @"gap": @2 }, @"overwriteSelectorStyles": @{ @"highlightBox": @{ @"borderColor": @"#2066ff" }, @"highlightBoxPoint": @{ @"backgroundColor": @"#ffffff" } } }; roomConfig.appliancePluginOptions = options; ``` 以上 Selector 样式作用于内嵌白板界面的选中框。应用可用 UIKit/SwiftUI 控制本端工具栏,并通过 `setMemberState:` 设置教具与样式;撤销、重做、复制、删除使用本端 WhiteRoom 的公开方法。 Auto Shape 可通过业务扩展模型传递,见[Auto Shape](/zh-CN/realtime-media/whiteboard/whiteboard-sdk/build/appliance-plugin/extended-features)。完整签名见[客户端 API](/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/docs/headers/agora-interactive-whiteboard-objective-c-overview)。