Package apple.quartzcore.protocol
Interface CALayerDelegate
-
- 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 CALayerDelegateDelegate methods. *
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CAActionactionForLayerForKey(CALayer layer, java.lang.String event)If defined, called by the default implementation of the -actionForKey: method.default voiddisplayLayer(CALayer layer)If defined, called by the default implementation of the -display method, in which case it should implement the entire display process (typically by setting the `contents' property).default voiddrawLayerInContext(CALayer layer, CGContextRef ctx)If defined, called by the default implementation of -drawInContext:default voidlayerWillDraw(CALayer layer)If defined, called by the default implementation of the -display method.default voidlayoutSublayersOfLayer(CALayer layer)Called by the default -layoutSublayers implementation before the layout manager is checked.
-
-
-
Method Detail
-
actionForLayerForKey
default CAAction actionForLayerForKey(CALayer layer, java.lang.String event)
If defined, called by the default implementation of the -actionForKey: method. Should return an object implementing the CAAction protocol. May return 'nil' if the delegate doesn't specify a behavior for the current event. Returning the null object (i.e. '[NSNull null]') explicitly forces no further search. (I.e. the +defaultActionForKey: method will not be called.)
-
displayLayer
default void displayLayer(CALayer layer)
If defined, called by the default implementation of the -display method, in which case it should implement the entire display process (typically by setting the `contents' property).
-
drawLayerInContext
default void drawLayerInContext(CALayer layer, CGContextRef ctx)
If defined, called by the default implementation of -drawInContext:
-
layerWillDraw
default void layerWillDraw(CALayer layer)
If defined, called by the default implementation of the -display method. Allows the delegate to configure any layer state affecting contents prior to -drawLayer:InContext: such as `contentsFormat' and `opaque'. It will not be called if the delegate implements -displayLayer.
-
layoutSublayersOfLayer
default void layoutSublayersOfLayer(CALayer layer)
Called by the default -layoutSublayers implementation before the layout manager is checked. Note that if the delegate method is invoked, the layout manager will be ignored.
-
-