Sign in Join
FPDoc Onlineexperiment

MimeTypes function

In unit FpMimeTypes

Global TFPMimeTypes instance.

Declaration

pascal
function MimeTypes: TFPMimeTypes

Function result

A TFPMimeTypes instance.

Description

MimeTypes returns a global instance of the TFPMimeTypes class. It is not initialized with a list of extensions, so this instance must still be explicitly initialized with LoadKnownTypes

This function is not thread-safe, so be sure to call it once from the main thread and initialize the resulting list.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.