Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.data.ActiveList.get
Stay organized with collections
Save and categorize content based on your preferences.
Returns the element at the specified index.
Usage | Returns | ActiveList.get(index) | Object |
Argument | Type | Details | this: ui.data.activelist | ui.data.ActiveList | The ui.data.ActiveList instance. |
index | Number | The index of the element to return. |
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."],[[["\u003cp\u003eThe \u003ccode\u003eget\u003c/code\u003e method retrieves the element located at the given index within an ActiveList.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts the \u003ccode\u003eindex\u003c/code\u003e as a numerical argument, specifying the element's position.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns the element found at the specified index, which can be of any object type.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality is accessed through an instance of the \u003ccode\u003eui.data.ActiveList\u003c/code\u003e object using the \u003ccode\u003eget\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `get(index)` method of `ui.data.ActiveList` returns an element (Object) located at a specific index (Number). The method takes the `ui.data.ActiveList` instance itself as context (`this`) and the desired `index` as its argument. This function retrieves and returns the object stored at that particular index within the ActiveList.\n"],null,["# ui.data.ActiveList.get\n\n\u003cbr /\u003e\n\nReturns the element at the specified index.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| ActiveList.get`(index)` | Object |\n\n| Argument | Type | Details |\n|----------------------------|--------------------|-------------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `index` | Number | The index of the element to return. |"]]