getModuleStore

abstract fun getModuleStore(moduleId: String): DataStore

Registers a Module for storage and returns its DataStore object, which can be used to read/write data.

Parameters

moduleId

The id of the module whose DataStore is required.


abstract fun getModuleStore(module: Module): DataStore

Registers a Module for storage and returns its DataStore object, which can be used to read/write data.

Parameters

module

The module whose DataStore is required.