IProviderV2¶
-
interface
OCP\Preview\IProviderV2¶ Implemented by: OC\Preview\ProviderV2OC\Preview\ProviderV1AdapterSource: lib/public/Preview/IProviderV2.php#36
Methods¶
-
public
OCP\Preview\IProviderV2::getMimeType()¶ Source: lib/public/Preview/IProviderV2.php#41 Returns: string Regex with the mimetypes that are supported by this provider Since: 17.0.0
-
public
OCP\Preview\IProviderV2::isAvailable($file)¶ - Check if a preview can be generated for $path
Source: Parameters: - $file (
OCP\Files\FileInfo)
Returns: bool
Since: 17.0.0
- $file (
-
public
OCP\Preview\IProviderV2::getThumbnail($file, $maxX, $maxY)¶ - get thumbnail for file at path $path
Source: Parameters: - $file (
OCP\Files\File) - $maxX (int) The maximum X size of the thumbnail. It can be smaller depending on the shape of the image
- $maxY (int) The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image
Returns: null |
\OCP\IImagenull if no preview was generatedSince: 17.0.0
- $file (