Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > íconos > MutatorIcon > initView
Método icon.MutatorIcon.initView()
Signature:
initView(pointerdownListener: (e: PointerEvent) => void): void;
Parámetros
Parámetro |
Tipo |
Descripción |
pointerdownListener |
(e: PointerEvent) => anular |
|
Muestra:
void
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-10-11 (UTC)
[null,null,["Última actualización: 2024-10-11 (UTC)"],[[["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"]]