Package apple.uikit.protocol
Interface UIFocusItemContainer
-
- All Known Subinterfaces:
UIFocusItemScrollableContainer
- All Known Implementing Classes:
ADBannerView,ARCoachingOverlayView,ARSCNView,ARSKView,ASAuthorizationAppleIDButton,AVRoutePickerView,BCChatButton,CAInterAppAudioSwitcherView,CAInterAppAudioTransportView,CPWindow,GLKView,HKActivityRingView,HMCameraView,INUIAddVoiceShortcutButton,LPLinkView,MKAnnotationView,MKCircleView,MKCompassButton,MKMapView,MKMarkerAnnotationView,MKOverlayPathView,MKOverlayView,MKPinAnnotationView,MKPolygonView,MKPolylineView,MKScaleView,MKUserLocationView,MKUserTrackingButton,MPVolumeView,MSStickerBrowserView,MSStickerView,MTKView,PDFThumbnailView,PDFView,PHLivePhotoView,PKAddPassButton,PKCanvasView,PKPaymentButton,RPSystemBroadcastPickerView,SCNView,SKView,UIActionSheet,UIActivityIndicatorView,UIAlertView,UIButton,UICollectionReusableView,UICollectionView,UICollectionViewCell,UICollectionViewListCell,UIColorWell,UIControl,UIDatePicker,UIImageView,UIInputView,UILabel,UIListContentView,UINavigationBar,UIPageControl,UIPickerView,UIPopoverBackgroundView,UIProgressView,UIRefreshControl,UIScrollView,UISearchBar,UISearchTextField,UISegmentedControl,UISlider,UIStackView,UIStepper,UISwitch,UITabBar,UITableView,UITableViewCell,UITableViewHeaderFooterView,UITextField,UITextView,UIToolbar,UIView,UIVisualEffectView,UIWebView,UIWindow,WKWebView
public interface UIFocusItemContainerObjects conforming to UIFocusItemContainer are responsible for providing which focus items they contain and where they are.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UICoordinateSpacecoordinateSpace()The coordinate space of the focus items contained in this container.NSArray<?>focusItemsInRect(CGRect rect)Returns an array of all focus items within this container that intersect with the provided rect.
-
-
-
Method Detail
-
coordinateSpace
UICoordinateSpace coordinateSpace()
The coordinate space of the focus items contained in this container. The focus items returned by focusItemsInRect: should report their frames in this coordinate space. If you are implementing this protocol, you may find it convenient to return the UIScreen as your coordinate space, and ensure that your contained items report their frames in screen space. Similarly, you might find that your focus items' containing UIView or UIWindow is the most convenient coordinate space to use. You may also choose to implement your own object that conforms to UICoordinateSpace, if that is the most natural solution for your architecture.
-
-