{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class PlatformTestStorageRegistry
An exposed registry instance that holds a reference to an PlatformTestStorage instance.
PlatformTestStorage and PlatformTestStorageRegistry are low level APIs, typically used by higher level test frameworks. It is generally not recommended for direct use by most tests.
This API is experimental and is subject to change or removal in future releases.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
synchronized java-static PlatformTestStorage! |
Returns the registered |
synchronized java-static Unit |
registerInstance(instance: PlatformTestStorage!)Registers a new |
synchronized java-static fun getInstance(): PlatformTestStorage!
Returns the registered PlatformTestStorage instance.
This method returns the instance last registered by the registerInstance method, or the default instance if none is ever registered.
synchronized java-static fun registerInstance(instance: PlatformTestStorage!): Unit
Registers a new PlatformTestStorage instance. This will override any previously set instance.
| Parameters | |
|---|---|
instance: PlatformTestStorage! |
the instance to be registered. Cannot be null. |