Skip to main content

Initialization State

A map-like data structure that provides the initialization state of each database and the information that influenced it.

Summary

Public methods

isReady()
fun isReady(): Boolean

Checks whether SyncDatabase has been properly initialized

Returns

Boolean

Returns true if the resources and connections for all databases accessed by SyncDatabase are ready for use; otherwise, returns false.

isShutDown()
fun isShutDown(): Boolean

Checks whether SyncDatabase has been properly shut down

Returns

Boolean

Returns true if the resources and connections for all databases accessed by SyncDatabase have been properly cleaned up; otherwise, returns false.

hasError()
fun hasError(): Boolean

Checks whether an error occurred during the initialization of SyncDatabase

Returns

Boolean

Returns true if an error occurred during the initialization of SyncDatabase; otherwise, returns false. The cause of errors for individual databases can be accessed using the database name as a key, similar to a map.