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
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."],[[["`ActiveList.reset()` replaces all existing elements in an ActiveList instance with a new list of elements provided or removes all elements if no list is provided."],["The method returns the current elements within the ActiveList instance after performing the reset operation."],["It accepts an optional `list` argument that can be any type of List and uses it to populate the ActiveList."],["The method is called on an instance of `ui.data.activelist`, denoted as 'this' in the argument table."]]],["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"]]