ee.Filter.getInfo
Retrieves the value of this object from the server.
If no callback function is provided, the request is made synchronously. If a callback is provided, the request is made asynchronously.
The asynchronous mode is preferred because the synchronous mode stops all other code (for example, the EE Code Editor UI) while waiting for the server. To make an asynchronous request, evaluate() is preferred over getInfo().
Returns the computed value of this object.
Usage | Returns |
---|
Filter.getInfo(callback) | Object |
Argument | Type | Details |
---|
this: computedobject | ComputedObject | The ComputedObject instance. |
callback | Function, optional | An optional callback. If not supplied, the call is made synchronously. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["This function retrieves the computed value of a ComputedObject from the server."],["It can be used synchronously or asynchronously, with asynchronous being preferred for better performance."],["`evaluate()` is recommended for asynchronous requests, while `getInfo()` is used for synchronous requests with an optional callback function."],["The function returns the computed value as an Object."]]],["The `getInfo()` method retrieves an object's value from the server. It can operate synchronously or asynchronously. Asynchronous mode, using a callback function, is preferred because synchronous mode halts other code execution. If a callback isn't provided, the request is synchronous. The method returns the object's computed value. `evaluate()` is recommended for asynchronous requests. The callback is optional. It is called with the value from the server.\n"]]