blockly > MetricsManager > getUiMetrics
Metodo MetricsManager.getUiMetrics()
Restituisce le metriche comuni utilizzate dagli elementi dell'interfaccia utente.
Firma:
getUiMetrics(): UiMetrics;
Restituisce:
UiMetrics
Le metriche dell'interfaccia utente.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-10-11 UTC.
[null,null,["Ultimo aggiornamento 2024-10-11 UTC."],[[["This method returns essential UI metrics used by user interface elements in Blockly."],["The `getUiMetrics` function provides access to these metrics in the form of a `UiMetrics` object, which can be utilized by developers when designing and implementing user interfaces within Blockly."],["`MetricsManager.getUiMetrics()` is a method used in the Blockly library for retrieving metrics related to user interface elements."]]],["The `getUiMetrics` method, part of the `MetricsManager` class, retrieves UI metrics. This method's signature is `getUiMetrics(): UiMetrics;`, meaning it takes no arguments and returns an object of type `UiMetrics`. The returned `UiMetrics` object contains common metrics utilized by UI elements within the Blockly system. This method's core function is simply to return this set of UI metrics.\n"]]