Stay organized with collections
Save and categorize content based on your preferences.
interface OperationMonitor.OnChangeListener
Listen to changes in operation status. Authors should avoid changing the Adapter model while there are active operations.
Summary
Public functions |
Unit |
Called when operation status changes.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# OperationMonitor.OnChangeListener\n=================================\n\nArtifact: [androidx.recyclerview:recyclerview-selection](/jetpack/androidx/releases/recyclerview) \n[View Source](https://cs.android.com/search?q=file:androidx/recyclerview/selection/OperationMonitor.java+class:androidx.recyclerview.selection.OperationMonitor.OnChangeListener) \nAdded in [1.0.0](/jetpack/androidx/releases/recyclerview#1.0.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/recyclerview/selection/OperationMonitor.OnChangeListener \"View this page in Java\")\n\n\n```\ninterface OperationMonitor.OnChangeListener\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListen to changes in operation status. Authors should avoid changing the Adapter model while there are active operations.\n\nSummary\n-------\n\n| ### Public functions |\n|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onChanged](/reference/kotlin/androidx/recyclerview/selection/OperationMonitor.OnChangeListener#onChanged())`()` Called when operation status changes. |\n\nPublic functions\n----------------\n\n### onChanged\n\nAdded in [1.0.0](/jetpack/androidx/releases/recyclerview#1.0.0) \n\n```\nfun onChanged(): Unit\n```\n\nCalled when operation status changes. Call [isStarted](/reference/kotlin/androidx/recyclerview/selection/OperationMonitor#isStarted()) to determine the current status."]]