public interface QLPreviewControllerDelegate
Modifier and Type | Method and Description |
---|---|
void |
didDismiss(QLPreviewController controller)
It is called after the QLPreviewController is closed.
|
boolean |
shouldOpenURL(QLPreviewController controller,
NSURL url,
QLPreviewItem item)
It is called before the QLPreviewController tries to open the specified
URL.
|
void |
willDismiss(QLPreviewController controller)
It is called before the QLPreviewController is closed.
|
void willDismiss(QLPreviewController controller)
controller
- The QLPreviewController that corresponds to this
delegate.void didDismiss(QLPreviewController controller)
controller
- The QLPreviewController that corresponds to this
delegate.boolean shouldOpenURL(QLPreviewController controller, NSURL url, QLPreviewItem item)
Called by the Quick Look preview controller before trying to open a URL.
controller
- The QLPreviewController that corresponds to this
delegate.url
- The URL that is requested to open.item
- The related QLPreview item.Copyright © 2020. All rights reserved.