Skip to content

QuickLook

Presents an item.

Use the quick look to present a file, an image or text string. The quick look will try to choose the best suited presentation of the item.

Presents the item.

static present(item: any, fullscreen: bool): Promise

Chooses the best suited presentation of the item and performs the presentation if possible.

item any

Item to be present.

fullscreen bool

Optional. Set to true to present the item in fullscreen. This only has an effect when used within the app. Defaults to false.

Promise

Promise that is fulfilled when the quick look is dismissed.