previewFile

fun previewFile(path: String, displayName: String = definedExternally)(source)

Uses Quick Look to preview a file at a given path.