Quick Look lets people preview Keynote, Numbers, Pages, and PDF documents, as well as images and other types of files, even if your app doesn't support those file formats. For further information: https://developer.apple.com/ios/human-interface-guidelines/features/quick-look/ This class works only for IOS.

Example

import QuickLook from '@smartface/native/ui/quicklook';
const quickLook = new QuickLook();
const testPDF = "assets://test.pdf";
const testImage = "images://test.png";
quickLook.document = [testPDF,testImage];
quickLook.itemColor = Color.WHITE;
quickLook.show(myPage);

Since

0.1

Hierarchy

  • INativeComponent
    • IQuickLook

Properties

nativeObject: { [key: string]: any }

Type declaration

  • [key: string]: any
document: string[]

Gets/sets array of documents(paths) that will be shown on QuickLook.

Example

import QuickLook from '@smartface/native/ui/quicklook';
const quicklook = new QuickLook();
quicklook.document = ["images://.png","assests://.pdf"];

Ios

Since

0.1

barColor: boolean

Gets/sets headerBar color of QuickLook View.

Example

import QuickLook from '@smartface/native/ui/quicklook';
const quicklook = new QuickLook();
quicklook.barColor = UI.Color.BLACK;

Deprecated

Removed

Ios

Since

0.1

titleColor: IColor

Gets/sets title color of QuickLook View.

Example

import QuickLook from '@smartface/native/ui/quicklook';
const quicklook = new QuickLook();
quicklook.titleColor = UI.Color.GREEN;

Ios

Since

3.1.3

itemColor: null | IColor

Gets/sets color of items on header & footer of QuickLook view.

Example

import QuickLook from '@smartface/native/ui/quicklook';
const quicklook = new QuickLook();
quicklook.itemColor = UI.Color.BLACK;

Property

Ios

Since

0.1

statusBar: null | StatusBarImpl

Gets status bar object. This property is readonly, you can not set status bar to a page but you can change properties of page's status bar.

Property

Removed

4.0.0 Use Application.statusBar instead

Ios

Since

0.1

Methods

  • This function shows QuickLook on the given UI.Page.

    Ios

    Method

    show

    Since

    0.1

    Parameters

    • page: IPage<"load" | "dismissComplete" | "dismissStart" | "dismissCancel" | "hide" | "show" | "orientationChange" | "safeAreaPaddingChange", MobileOSProps<PageIOSParams, PageAndroidParams>, any>

    Returns void

Generated using TypeDoc