ee.Feature.evaluate
Asynchronously retrieves the value of this object from the server and passes it to the provided callback function.
Usage | Returns |
---|
Feature.evaluate(callback) | |
Argument | Type | Details |
---|
this: computedobject | ComputedObject | The ComputedObject instance. |
callback | Function | A function of the form function(success, failure), called when the server returns an answer. If the request succeeded, the success argument contains the evaluated result. If the request failed, the failure argument will contains an error message. |
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."],[[["Allows retrieving the value of a ComputedObject from the server without blocking other operations."],["Uses a callback function that receives the result or an error message upon completion."],["Accepts a ComputedObject instance and a callback function as parameters."]]],["The `evaluate` method asynchronously fetches a `ComputedObject`'s value from the server. It takes a `callback` function as an argument, which is executed upon receiving a response. The `callback` function receives two parameters: `success` for the evaluated result if the request was successful, and `failure` for an error message if it failed. The method does not return any value. The request's status and outcome are communicated via the `callback`.\n"]]