common / com.mapbox.common.module.provider / ModuleProviderArgument / <init>

<init>

ModuleProviderArgument(expectedArgumentClass: Class<*>, argumentInstance: Any?)

Declares arguments used to create default Mapbox modules.

Parameters

expectedArgumentClass - the exact Class that the default implementation of the module expects as an argument. This shouldn't be a subclass, but exactly what's in the declaration of the constructor/method we want to use.

argumentInstance - instance of the expected argument (can be a subclass)