ProviderV2¶
-
class
OC\Preview\
ProviderV2
¶ Source: lib/private/Preview/ProviderV2.php#34 Implements: OCP\Preview\IProviderV2
Properties¶
Methods¶
-
public
OC\Preview\ProviderV2::
__construct
($options=[])¶ - Constructor
Source: Parameters: - $options (array)
-
public abstract
OC\Preview\ProviderV2::
getMimeType
()¶ Source: lib/private/Preview/ProviderV2.php#51 Returns: string Regex with the mimetypes that are supported by this provider
-
public
OC\Preview\ProviderV2::
isAvailable
($file)¶ - Check if a preview can be generated for $path
Source: Parameters: - $file (
OCP\Files\FileInfo
)
Returns: bool
- $file (
-
public abstract
OC\Preview\ProviderV2::
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\IImage
false if no preview was generatedSince: 17.0.0
- $file (
-
protected
OC\Preview\ProviderV2::
getLocalFile
($file, $maxSize=null)¶ - Get a path to either the local file or temporary file
Source: Parameters: - $file (
OCP\Files\File
) - $maxSize (int) maximum size for temporary files
Returns: string
- $file (
-
protected
OC\Preview\ProviderV2::
cleanTmpFiles
()¶ - Clean any generated temporary files
Source: lib/private/Preview/ProviderV2.php#103