* @param \OCP\Files\FileInfo $file
* @return bool
*/
- public function isAvailable($file) {
+ public function isAvailable(\OCP\Files\FileInfo $file) {
return true;
}
/**
* {@inheritDoc}
*/
- public function isAvailable($file) {
+ public function isAvailable(\OCP\Files\FileInfo $file) {
return $file->getSize() > 5;
}
* In order to improve lazy loading a closure can be registered which will be
* called in case preview providers are actually requested
*
- * $callable has to return an instance of \OC\Preview\Provider
+ * $callable has to return an instance of \OCP\Preview\IProvider
*
* @param string $mimeTypeRegex Regex with the mime types that are supported by this provider
* @param \Closure $callable
* @param \OCP\Files\FileInfo $file
* @return bool
*/
- public function isAvailable($file);
+ public function isAvailable(\OCP\Files\FileInfo $file);
/**
* get thumbnail for file at path $path