Package apple.quartzcore.protocol
Interface CALayerDelegate
-
- All Known Implementing Classes:
ARCoachingOverlayView,ARSCNView,ARSKView,ASAuthorizationAppleIDButton,AVRoutePickerView,BCChatButton,CAInterAppAudioSwitcherView,CAInterAppAudioTransportView,CLLocationButton,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,PKIdentityButton,PKPayLaterView,PKPaymentButton,RPSystemBroadcastPickerView,SCNView,SKView,SWAttributionView,SWCollaborationView,UIActionSheet,UIActivityIndicatorView,UIAlertView,UIButton,UICalendarView,UICollectionReusableView,UICollectionView,UICollectionViewCell,UICollectionViewListCell,UIColorWell,UIContentUnavailableView,UIControl,UIDatePicker,UIEventAttributionView,UIImageView,UIInputView,UILabel,UIListContentView,UINavigationBar,UIPageControl,UIPasteControl,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 @Nullable CAActionactionForLayerForKey(@NotNull CALayer layer, @NotNull java.lang.String event)If defined, called by the default implementation of the -actionForKey: method.default voiddisplayLayer(@NotNull 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(@NotNull CALayer layer, @NotNull CGContextRef ctx)If defined, called by the default implementation of -drawInContext:default voidlayerWillDraw(@NotNull CALayer layer)If defined, called by the default implementation of the -display method.default voidlayoutSublayersOfLayer(@NotNull CALayer layer)Called by the default -layoutSublayers implementation before the layout manager is checked.
-
-
-
Method Detail
-
actionForLayerForKey
@Nullable default @Nullable CAAction actionForLayerForKey(@NotNull @NotNull CALayer layer, @NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull CALayer layer, @NotNull @NotNull CGContextRef ctx)If defined, called by the default implementation of -drawInContext:
-
layerWillDraw
default void layerWillDraw(@NotNull @NotNull 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. API-Since: 10.0
-
layoutSublayersOfLayer
default void layoutSublayersOfLayer(@NotNull @NotNull 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.
-
-