TrackParser

interface TrackParser

Interface for parsers that handle importing tracks from files. Different implementations should handle different file formats (e.g., GPX, KML).

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract suspend fun parse(context: Context, fileUri: Uri, fileSize: Long, chunkSize: Int): Flow<ParsedData>

Parse the given file Uri and extract an ImportedTrack.