OperationMonitor

class OperationMonitor


OperationMonitor provides a mechanism to coordinate application logic with ongoing user selection activities (such as active band selection and active gesture selection).

The host android.app.Activity or android.app.Fragment should avoid changing Adapter data while there are active selection operations, as this can result in a poor user experience.

To know when an operation is active listen to changes using an OnChangeListener.

Summary

Nested types

Listen to changes in operation status.

Public constructors

Public functions

Unit

Registers supplied listener to be notified when operation status changes.

synchronized Boolean
Unit

Unregisters listener for further notifications.

Public constructors

OperationMonitor

Added in 1.0.0
OperationMonitor()

Public functions

addListener

Added in 1.0.0
fun addListener(listener: OperationMonitor.OnChangeListener): Unit

Registers supplied listener to be notified when operation status changes.

isStarted

Added in 1.0.0
synchronized fun isStarted(): Boolean
Returns
Boolean

true if there are any running operations.

removeListener

Added in 1.0.0
fun removeListener(listener: OperationMonitor.OnChangeListener): Unit

Unregisters listener for further notifications.