Google 致力于为黑人社区推动种族平等。查看具体举措

IntentMonitorRegistry

public final class IntentMonitorRegistry
extends Object

java.lang.Object
   ↳ androidx.test.runner.intent.IntentMonitorRegistry


Exposes an implementation of IntentMonitor to users.

Summary

Public methods

static IntentMonitor getInstance()

Returns the IntentMonitor.

static void registerInstance(IntentMonitor monitor)

Stores the given IntentMonitor instance in the registry.

Inherited methods

From class java.lang.Object

Public methods

getInstance

IntentMonitor getInstance ()

Returns the IntentMonitor. This monitor is not guaranteed to be present under all' instrumentations.

Returns
IntentMonitor

Throws
IllegalStateException if no monitor has been registered.

registerInstance

void registerInstance (IntentMonitor monitor)

Stores the given IntentMonitor instance in the registry. Passing null removes the monitor from the registry.

Parameters
monitor IntentMonitor