Single Instance Manager
object SingleInstanceManager
Singleton object to manage the single instance of an application.
This object ensures that only one instance of the application can run at a time, and provides a mechanism to notify the running instance when another instance attempts to start.
Types
Link copied to clipboard
data class Configuration(val lockFilesDir: <Error class: unknown class> = Paths.get(System.getProperty("java.io.tmpdir")), val lockIdentifier: String = APP_IDENTIFIER)
Configuration for a locking mechanism.
Functions
Link copied to clipboard
fun isSingleInstance(onRestoreFileCreated: <Error class: unknown class>.() -> Unit? = null, onRestoreRequest: <Error class: unknown class>.() -> Unit): Boolean
Checks if the current process is the single running instance.