getNmeaSource

fun getNmeaSource(appContext: Context, nmeaSourceFile: File? = null, fileExt: String = defaultNmeaExt): LocationDataSource?

Returns GPS source from NMEA file if it exists and is readable

Return

the LocationDataSource or null if file is not found or not readable.

Parameters

appContext

the application context

nmeaSourceFile

the NMEA source file (its extension must correspond to fileExt).

fileExt

the extension of the gps simulation file If null, it will search for a file with an extension that corresponds to fileExt in the external scoped storage root of the app.