OperationMonitor


public final 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 methods

void

Registers supplied listener to be notified when operation status changes.

synchronized boolean
void

Unregisters listener for further notifications.

Public constructors

OperationMonitor

Added in 1.0.0
public OperationMonitor()

Public methods

addListener

Added in 1.0.0
public void addListener(@NonNull OperationMonitor.OnChangeListener listener)

Registers supplied listener to be notified when operation status changes.

isStarted

Added in 1.0.0
synchronized public boolean isStarted()
Returns
boolean

true if there are any running operations.

removeListener

Added in 1.0.0
public void removeListener(@NonNull OperationMonitor.OnChangeListener listener)

Unregisters listener for further notifications.