Protocol: QLPreviewItem
Overview
A Quick Look preview item must adopt the QLPreviewItem protocol to enable it to be displayed by a QLPreviewController (Quick Look preview controller) object.The preview item’s title.The URL of the item to preview. (required)
Instance Attribute Summary (collapse)
-
- previewItemTitle
readonly
The preview item’s title.
-
- previewItemURL
readonly
The URL of the item to preview.
Instance Attribute Details
- (String) previewItemTitle (readonly)
The preview item’s title. This property is used by a Quick Look preview controller to get an item’s title. In typical use, you would implement a getter method in your preview item class to provide this value.If not nil, this value is used as the preview item title, replacing the default item title. The default title is the last path component of an item’s URL.
- (NSURL) previewItemURL (readonly)
The URL of the item to preview. (required) This property is used by a Quick Look preview controller to get an item’s URL. In typical use, you would implement a getter method in your preview item class to provide this value.The value of this property must be a file-type URL.If the item is not available for preview, this property’s getter method should return nil. In this case, the Quick Look preview controller displays a “loading” view.