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.
Methods
Section titled “Methods”
present(item, fullscreen)
Section titled “present(item, fullscreen)”Presents the item.
static present(item: any, fullscreen: bool): PromiseChooses the best suited presentation of the item and performs the presentation if possible.
Parameters
Section titled “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
Section titled “Return value”Promise
Promise that is fulfilled when the quick look is dismissed.