public final class RequirementsWatcher
extends java.lang.Object
Requirements are met and notifies the RequirementsWatcher.Listener on changes.| Modifier and Type | Class and Description |
|---|---|
static interface |
RequirementsWatcher.Listener
Notified when RequirementsWatcher instance first created and on changes whether the
Requirements are met. |
| Constructor and Description |
|---|
RequirementsWatcher(android.content.Context context,
RequirementsWatcher.Listener listener,
Requirements requirements) |
| Modifier and Type | Method and Description |
|---|---|
Requirements |
getRequirements()
Returns watched
Requirements. |
void |
start()
Starts watching for changes.
|
void |
stop()
Stops watching for changes.
|
java.lang.String |
toString() |
public RequirementsWatcher(android.content.Context context,
RequirementsWatcher.Listener listener,
Requirements requirements)
context - Any context.listener - Notified whether the Requirements are met.requirements - The requirements to watch.public void start()
Looper. Listener methods are called on the caller thread.public void stop()
public Requirements getRequirements()
Requirements.public java.lang.String toString()
toString in class java.lang.Object