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.

+present

Presents the item.

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

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

Parameters

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.

Return value

Promise
Promise that is fulfilled when the quick look is dismissed.