getPreview(); } /** * returns true if the passed mime type is supported * * @param string $mimeType * @return boolean */ function isMimeSupported($mimeType = '*') { return \OC\Preview::isMimeSupported($mimeType); } /** * Check if a preview can be generated for a file * * @param \OC\Files\FileInfo $file * @return bool */ function isAvailable($file) { return \OC\Preview::isAvailable($file); } }