KmlParser

class KmlParser @Inject constructor : TrackParser

Parser implementation for KML files. Reads KML XML data from the provided Uri and converts it to an ImportedTrack.

Constructors

Link copied to clipboard
@Inject
constructor()

Functions

Link copied to clipboard
open override fun canHandle(fileUri: Uri): Boolean

Check whether this parser can handle the given file Uri. This is useful to select the correct parser dynamically.

Link copied to clipboard
open suspend override fun parse(context: Context, fileUri: Uri, fileSize: Long, chunkSize: Int): Flow<ParsedData>

Parse the given file Uri and extract an ImportedTrack.