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.reset
Stay organized with collections
Save and categorize content based on your preferences.
Replaces all elements in list with a new list or, if no list is provided, removes all elements from list.
Returns the elements in the list after the reset is applied.
Usage | Returns | ActiveList.reset(list) | List<Object> |
Argument | Type | Details | this: ui.data.activelist | ui.data.ActiveList | The ui.data.ActiveList instance. |
list | List<Object>, optional | A list of elements. |
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 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 UTC."],[[["\u003cp\u003e\u003ccode\u003eActiveList.reset()\u003c/code\u003e replaces all existing elements in an ActiveList instance with a new list of elements provided or removes all elements if no list is provided.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns the current elements within the ActiveList instance after performing the reset operation.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts an optional \u003ccode\u003elist\u003c/code\u003e argument that can be any type of List and uses it to populate the ActiveList.\u003c/p\u003e\n"],["\u003cp\u003eThe method is called on an instance of \u003ccode\u003eui.data.activelist\u003c/code\u003e, denoted as 'this' in the argument table.\u003c/p\u003e\n"]]],["The `ActiveList.reset()` method modifies an `ActiveList` instance. It either replaces all existing elements with a provided list or, if no list is given, removes all elements. The method returns the updated list after this replacement or removal. It accepts an optional `list` argument, which should be a list of elements. The target instance for this method is a `ui.data.ActiveList` object.\n"],null,["# ui.data.ActiveList.reset\n\n\u003cbr /\u003e\n\nReplaces all elements in list with a new list or, if no list is provided, removes all elements from list.\n\n\u003cbr /\u003e\n\nReturns the elements in the list after the reset is applied.\n\n| Usage | Returns |\n|------------------------------|----------------|\n| ActiveList.reset`(`*list*`)` | List\\\u003cObject\\\u003e |\n\n| Argument | Type | Details |\n|----------------------------|--------------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `list` | List\\\u003cObject\\\u003e, optional | A list of elements. |"]]