provideOmhLocation

fun provideOmhLocation(context: Context): OmhLocation

Provides OmhLocation interface to interact with the location from the OMH Maps library.

Return

OmhLocation to interact with the location from the OMH Maps library.

Parameters

context

ideally your application context, but an activity context will also work.

Throws

when reflection fails for any of the implementations of the OmhMapFactory. If this happens, look if you have configured correctly the gradle plugin or if your obfuscation method hasn't tampered with the library files.