getRegisteredModules

open override fun getRegisteredModules(): List<Module<*, *>>(source)

Returns all modules registered in this store.

This is the Swift/Obj-C-friendly way to retrieve a specific module instance. Swift cannot construct a KClass to pass to getModule, so this method allows Swift to use its own type system instead:

let navModule = store.getRegisteredModules()
.first { $0 is NavigationModule } as? NavigationModule

The recommended primary approach for Swift interop is to expose module instances as typed properties on your SDK class, and use this method only as a fallback when a direct reference is not available.

From Kotlin, prefer getModule with a reified type parameter instead.

Return

Snapshot list of all registered module instances

See also

for Kotlin callers