mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00

- add `objc-x86_64` architecture typings - remove `objc-i386` architecture typings - add `vector` typings - change ``` (method) NSArray<ObjectType>.arrayWithArray<{}>(array: NSArray<{}>): NSArray<{}> ``` to ``` (method) NSArray<ObjectType>.arrayWithArray<string>(array: string[] | NSArray<string>): NSArray<string> ``` * Export typings on for iOS 11 x86_64 * fix: Export typings with fixed NSArray parameters * Export typescript declarations for iOS 11.4 * Update reference path with the new typings folder * feat: Create a script for auto typings generation * Export typings on for iOS 11 x86_64 * fix: Export typings with fixed NSArray parameters * Export typescript declarations for iOS 11.4 * Update reference path with the new typings folder * feat: Create a script for auto typings generation * chore: update .gitignore and .npmignore * fix: Update constructor methods accepting NSArray parameters * chore: Update manual changes flag for typings generation
111 lines
3.3 KiB
TypeScript
111 lines
3.3 KiB
TypeScript
|
|
declare class QLFileThumbnailRequest extends NSObject {
|
|
|
|
static alloc(): QLFileThumbnailRequest; // inherited from NSObject
|
|
|
|
static new(): QLFileThumbnailRequest; // inherited from NSObject
|
|
|
|
readonly fileURL: NSURL;
|
|
|
|
readonly maximumSize: CGSize;
|
|
|
|
readonly minimumSize: CGSize;
|
|
|
|
readonly scale: number;
|
|
}
|
|
|
|
declare class QLPreviewController extends UIViewController {
|
|
|
|
static alloc(): QLPreviewController; // inherited from NSObject
|
|
|
|
static canPreviewItem(item: QLPreviewItem): boolean;
|
|
|
|
static new(): QLPreviewController; // inherited from NSObject
|
|
|
|
readonly currentPreviewItem: QLPreviewItem;
|
|
|
|
currentPreviewItemIndex: number;
|
|
|
|
dataSource: QLPreviewControllerDataSource;
|
|
|
|
delegate: QLPreviewControllerDelegate;
|
|
|
|
refreshCurrentPreviewItem(): void;
|
|
|
|
reloadData(): void;
|
|
}
|
|
|
|
interface QLPreviewControllerDataSource {
|
|
|
|
numberOfPreviewItemsInPreviewController(controller: QLPreviewController): number;
|
|
|
|
previewControllerPreviewItemAtIndex(controller: QLPreviewController, index: number): QLPreviewItem;
|
|
}
|
|
declare var QLPreviewControllerDataSource: {
|
|
|
|
prototype: QLPreviewControllerDataSource;
|
|
};
|
|
|
|
interface QLPreviewControllerDelegate extends NSObjectProtocol {
|
|
|
|
previewControllerDidDismiss?(controller: QLPreviewController): void;
|
|
|
|
previewControllerFrameForPreviewItemInSourceView?(controller: QLPreviewController, item: QLPreviewItem, view: interop.Pointer | interop.Reference<UIView>): CGRect;
|
|
|
|
previewControllerShouldOpenURLForPreviewItem?(controller: QLPreviewController, url: NSURL, item: QLPreviewItem): boolean;
|
|
|
|
previewControllerTransitionImageForPreviewItemContentRect?(controller: QLPreviewController, item: QLPreviewItem, contentRect: interop.Pointer | interop.Reference<CGRect>): UIImage;
|
|
|
|
previewControllerTransitionViewForPreviewItem?(controller: QLPreviewController, item: QLPreviewItem): UIView;
|
|
|
|
previewControllerWillDismiss?(controller: QLPreviewController): void;
|
|
}
|
|
declare var QLPreviewControllerDelegate: {
|
|
|
|
prototype: QLPreviewControllerDelegate;
|
|
};
|
|
|
|
interface QLPreviewItem extends NSObjectProtocol {
|
|
|
|
previewItemTitle?: string;
|
|
|
|
previewItemURL: NSURL;
|
|
}
|
|
declare var QLPreviewItem: {
|
|
|
|
prototype: QLPreviewItem;
|
|
};
|
|
|
|
interface QLPreviewingController extends NSObjectProtocol {
|
|
|
|
preparePreviewOfFileAtURLCompletionHandler?(url: NSURL, handler: (p1: NSError) => void): void;
|
|
|
|
preparePreviewOfSearchableItemWithIdentifierQueryStringCompletionHandler?(identifier: string, queryString: string, handler: (p1: NSError) => void): void;
|
|
}
|
|
declare var QLPreviewingController: {
|
|
|
|
prototype: QLPreviewingController;
|
|
};
|
|
|
|
declare class QLThumbnailProvider extends NSObject {
|
|
|
|
static alloc(): QLThumbnailProvider; // inherited from NSObject
|
|
|
|
static new(): QLThumbnailProvider; // inherited from NSObject
|
|
|
|
provideThumbnailForFileRequestCompletionHandler(request: QLFileThumbnailRequest, handler: (p1: QLThumbnailReply, p2: NSError) => void): void;
|
|
}
|
|
|
|
declare class QLThumbnailReply extends NSObject {
|
|
|
|
static alloc(): QLThumbnailReply; // inherited from NSObject
|
|
|
|
static new(): QLThumbnailReply; // inherited from NSObject
|
|
|
|
static replyWithContextSizeCurrentContextDrawingBlock(contextSize: CGSize, drawingBlock: () => boolean): QLThumbnailReply;
|
|
|
|
static replyWithContextSizeDrawingBlock(contextSize: CGSize, drawingBlock: (p1: any) => boolean): QLThumbnailReply;
|
|
|
|
static replyWithImageFileURL(fileURL: NSURL): QLThumbnailReply;
|
|
}
|