MediaFileNameHandler

class MediaFileNameHandler(deviceFileNameParser: List<DeviceFileNameParser>)

A util that multiplexes parsing of media item filenames from multiple different devices / different DeviceFileNameParser, that needs to be passed at SOCommMediaClientBuilder.mediaFileNameHandler.

Constructors

Link copied to clipboard
constructor(vararg deviceFileNameParser: DeviceFileNameParser)
constructor(deviceFileNameParser: List<DeviceFileNameParser>)

Functions

Link copied to clipboard
fun parseDateTimeFromFilename(fileName: String, mediaType: MediaType): LocalDateTime?

Tries to extract a LocalDateTime from a given fileName (and MediaType) for any device for which a DeviceFileNameParser is available.