Package apple.uikit.protocol
Interface UITraitChangeObservable
-
- All Known Implementing Classes:
ABNewPersonViewController,ABPeoplePickerNavigationController,ABPersonViewController,ABUnknownPersonViewController,ARCoachingOverlayView,ARSCNView,ARSKView,ASAccountAuthenticationModificationViewController,ASAuthorizationAppleIDButton,ASCredentialProviderViewController,AUGenericViewController,AUViewController,AVPictureInPictureVideoCallViewController,AVPlayerViewController,AVRoutePickerView,BCChatButton,CABTMIDICentralViewController,CABTMIDILocalPeripheralViewController,CAInterAppAudioSwitcherView,CAInterAppAudioTransportView,CLLocationButton,CNContactPickerViewController,CNContactViewController,CPWindow,EKCalendarChooser,EKEventEditViewController,EKEventViewController,FPUIActionExtensionViewController,GCEventViewController,GKAchievementViewController,GKFriendRequestComposeViewController,GKGameCenterViewController,GKLeaderboardViewController,GKMatchmakerViewController,GKTurnBasedMatchmakerViewController,GLKView,GLKViewController,HKActivityRingView,HMCameraView,ILClassificationUIExtensionViewController,INUIAddVoiceShortcutButton,INUIAddVoiceShortcutViewController,INUIEditVoiceShortcutViewController,LPLinkView,MCBrowserViewController,MFMailComposeViewController,MFMessageComposeViewController,MKAnnotationView,MKCircleView,MKCompassButton,MKLookAroundViewController,MKMapView,MKMarkerAnnotationView,MKOverlayPathView,MKOverlayView,MKPinAnnotationView,MKPolygonView,MKPolylineView,MKScaleView,MKUserLocationView,MKUserTrackingButton,MPMediaPickerController,MPMoviePlayerViewController,MPVolumeView,MSMessagesAppViewController,MSStickerBrowserView,MSStickerBrowserViewController,MSStickerView,MTKView,PDFThumbnailView,PDFView,PHLivePhotoView,PHPickerViewController,PKAddPassButton,PKAddPassesViewController,PKAddPaymentPassViewController,PKAddSecureElementPassViewController,PKCanvasView,PKIdentityButton,PKPayLaterView,PKPaymentAuthorizationViewController,PKPaymentButton,PKShareSecureElementPassViewController,QLPreviewController,RPBroadcastActivityViewController,RPPreviewViewController,RPSystemBroadcastPickerView,SCNView,SFSafariViewController,SKCloudServiceSetupViewController,SKStoreProductViewController,SKView,SLComposeServiceViewController,SLComposeViewController,STWebpageController,SWAttributionView,SWCollaborationView,SWRemoveParticipantAlertController,TWTweetComposeViewController,UIActionSheet,UIActivityIndicatorView,UIActivityViewController,UIAlertController,UIAlertView,UIButton,UICalendarView,UICloudSharingController,UICollectionReusableView,UICollectionView,UICollectionViewCell,UICollectionViewController,UICollectionViewListCell,UIColorPickerViewController,UIColorWell,UIContentUnavailableView,UIControl,UIDatePicker,UIDocumentBrowserViewController,UIDocumentMenuViewController,UIDocumentPickerExtensionViewController,UIDocumentPickerViewController,UIDocumentViewController,UIEventAttributionView,UIFontPickerViewController,UIImagePickerController,UIImageView,UIInputView,UIInputViewController,UILabel,UIListContentView,UINavigationBar,UINavigationController,UIPageControl,UIPageViewController,UIPasteControl,UIPickerView,UIPopoverBackgroundView,UIPopoverPresentationController,UIPresentationController,UIProgressView,UIReferenceLibraryViewController,UIRefreshControl,UIScrollView,UISearchBar,UISearchContainerViewController,UISearchController,UISearchTextField,UISegmentedControl,UISheetPresentationController,UISlider,UISplitViewController,UIStackView,UIStepper,UISwitch,UITabBar,UITabBarController,UITableView,UITableViewCell,UITableViewController,UITableViewHeaderFooterView,UITextField,UITextView,UIToolbar,UIVideoEditorController,UIView,UIViewController,UIVisualEffectView,UIWebView,UIWindow,UIWindowScene,VNDocumentCameraViewController,WKWebView
public interface UITraitChangeObservableAPI-Since: 17.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull UITraitChangeRegistrationregisterForTraitChangesWithAction(@NotNull NSArray<?> traits, @NotNull org.moe.natj.objc.SEL action)Convenience method where the target is self.@NotNull UITraitChangeRegistrationregisterForTraitChangesWithHandler(@NotNull NSArray<?> traits, @NotNull UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)@NotNull UITraitChangeRegistrationregisterForTraitChangesWithTargetAction(@NotNull NSArray<?> traits, @NotNull java.lang.Object target, @NotNull org.moe.natj.objc.SEL action)The action method you use with the following registration APIs may have zero, one, or two parameters.voidunregisterForTraitChanges(@NotNull UITraitChangeRegistration registration)
-
-
-
Method Detail
-
registerForTraitChangesWithAction
@NotNull @NotNull UITraitChangeRegistration registerForTraitChangesWithAction(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull org.moe.natj.objc.SEL action)
Convenience method where the target is self.
-
registerForTraitChangesWithHandler
@NotNull @NotNull UITraitChangeRegistration registerForTraitChangesWithHandler(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)
-
registerForTraitChangesWithTargetAction
@NotNull @NotNull UITraitChangeRegistration registerForTraitChangesWithTargetAction(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull java.lang.Object target, @NotNull @NotNull org.moe.natj.objc.SEL action)
The action method you use with the following registration APIs may have zero, one, or two parameters. If the method accepts at least one parameter, the first parameter will be the trait environment whose traits are changing. If the method accepts two parameters, the second parameter will be the trait environment's previous trait collection before the change.
-
unregisterForTraitChanges
void unregisterForTraitChanges(@NotNull @NotNull UITraitChangeRegistration registration)
-
-