provide

fun provide(    registerInterest: Boolean,     successHandler: (UUID, String, AvailFile) -> Unit,     failureHandler: (ErrorCode, Throwable?) -> Unit)

Provide the raw bytes of the enclosed AvailFile to the requesting consumer.

Parameters

registerInterest

true if the intent is to let this AbstractFileWrapper know that the caller is interested in the file being kept in memory; false otherwise.

successHandler

A function that accepts the FileManager.fileCache that uniquely identifies the file, the String mime type, and the AvailFile.

failureHandler

A function that accepts a ErrorCode that describes the nature of the failure and an optional Throwable.