MCPcopy Index your code
hub / github.com/NativeScript/nativescript-imagepicker / present

Method present

src/imagepicker.ios.ts:77–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 present() {
78 return new Promise<void>((resolve, reject) => {
79 const imagePickerControllerDelegate = ImagePickerControllerDelegate.new();
80 imagePickerControllerDelegate._resolve = resolve;
81 imagePickerControllerDelegate._reject = reject;
82
83 this._imagePickerController.delegate = imagePickerControllerDelegate;
84
85 this.hostController.presentViewControllerAnimatedCompletion(this._imagePickerController, true, null);
86 });
87 }
88}
89
90export class ImagePickerControllerDelegate extends NSObject implements QBImagePickerControllerDelegate {

Callers 2

startSelectionMethod · 0.45
startSelectionMethod · 0.45

Calls 1

newMethod · 0.80

Tested by

no test coverage detected