pub unsafe trait UILargeContentViewerItem: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn showsLargeContentViewer(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn largeContentTitle(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn largeContentImage(&self) -> Option<Retained<UIImage>>
where Self: Sized + Message { ... }
unsafe fn scalesLargeContentImage(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn largeContentImageInsets(&self) -> UIEdgeInsets
where Self: Sized + Message { ... }
}
Available on crate feature
UILargeContentViewer
only.Expand description
Provided Methods§
Sourceunsafe fn showsLargeContentViewer(&self) -> bool
unsafe fn showsLargeContentViewer(&self) -> bool
Returns whether the item shows the large content viewer. In general, only views that cannot scale for the full range of Dynamic Type sizes should return YES. For this property to take effect, the item or an ancestor view must have a UILargeContentViewerInteraction.
Sourceunsafe fn largeContentTitle(&self) -> Option<Retained<NSString>>
unsafe fn largeContentTitle(&self) -> Option<Retained<NSString>>
Returns a title that should be shown in the large content viewer.
Sourceunsafe fn largeContentImage(&self) -> Option<Retained<UIImage>>
Available on crate feature UIImage
only.
unsafe fn largeContentImage(&self) -> Option<Retained<UIImage>>
UIImage
only.Returns an image that should be shown in the large content viewer.
Sourceunsafe fn scalesLargeContentImage(&self) -> bool
unsafe fn scalesLargeContentImage(&self) -> bool
Returns whether the image should be scaled to a larger size appropriate for the viewer. If not, the image will be shown at its intrinsic size. For best results when scaling, use a PDF asset with its “Preserve Vector Data” checkbox checked.
Sourceunsafe fn largeContentImageInsets(&self) -> UIEdgeInsets
Available on crate features UIGeometry
and objc2-core-foundation
only.
unsafe fn largeContentImageInsets(&self) -> UIEdgeInsets
UIGeometry
and objc2-core-foundation
only.Returns insets appropriate for positioning the image in the viewer so that it appears visually centered.