研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >图标 >MutatorIcon>initView
icon.MutatorIcon.initView() 方法
Signature:
initView(pointerdownListener: (e: PointerEvent) => void): void;
参数
参数 |
类型 |
说明 |
pointerdownListener |
(例如:PointerEvent)=>无效 |
|
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-11。
[null,null,["最后更新时间 (UTC):2024-10-11。"],[[["The `initView` method initializes the visual representation of the MutatorIcon, likely setting up its shape and behavior."],["It accepts a `pointerdownListener` function as input, which will be executed when the icon is clicked."],["The method does not return any value (void)."],["This method is part of the `MutatorIcon` class within the `Blockly.icons` namespace, related to Blockly's visual programming environment."]]],["The `initView` method, part of the `MutatorIcon` class, accepts a single parameter: `pointerdownListener`. This parameter is a function that takes a `PointerEvent` as input and returns void. The `initView` method itself also returns void. Essentially, this method configures the view associated with the MutatorIcon, specifically setting up a listener that is triggered on pointer down events.\n"]]