Package apple.uikit.protocol
Interface UIContentContainer
-
- All Known Implementing Classes:
ABNewPersonViewController,ABPeoplePickerNavigationController,ABPersonViewController,ABUnknownPersonViewController,ASAccountAuthenticationModificationViewController,ASCredentialProviderViewController,AUGenericViewController,AUViewController,AVPictureInPictureVideoCallViewController,AVPlayerViewController,CABTMIDICentralViewController,CABTMIDILocalPeripheralViewController,CNContactPickerViewController,CNContactViewController,EKCalendarChooser,EKEventEditViewController,EKEventViewController,FPUIActionExtensionViewController,GCEventViewController,GKAchievementViewController,GKFriendRequestComposeViewController,GKGameCenterViewController,GKLeaderboardViewController,GKMatchmakerViewController,GKTurnBasedMatchmakerViewController,GLKViewController,ILClassificationUIExtensionViewController,INUIAddVoiceShortcutViewController,INUIEditVoiceShortcutViewController,MCBrowserViewController,MFMailComposeViewController,MFMessageComposeViewController,MKLookAroundViewController,MPMediaPickerController,MPMoviePlayerViewController,MSMessagesAppViewController,MSStickerBrowserViewController,PHPickerViewController,PKAddPassesViewController,PKAddPaymentPassViewController,PKAddSecureElementPassViewController,PKPaymentAuthorizationViewController,PKShareSecureElementPassViewController,QLPreviewController,RPBroadcastActivityViewController,RPPreviewViewController,SFSafariViewController,SKCloudServiceSetupViewController,SKStoreProductViewController,SLComposeServiceViewController,SLComposeViewController,STWebpageController,SWRemoveParticipantAlertController,TWTweetComposeViewController,UIActivityViewController,UIAlertController,UICloudSharingController,UICollectionViewController,UIColorPickerViewController,UIDocumentBrowserViewController,UIDocumentMenuViewController,UIDocumentPickerExtensionViewController,UIDocumentPickerViewController,UIDocumentViewController,UIFontPickerViewController,UIImagePickerController,UIInputViewController,UINavigationController,UIPageViewController,UIPopoverPresentationController,UIPresentationController,UIReferenceLibraryViewController,UISearchContainerViewController,UISearchController,UISheetPresentationController,UISplitViewController,UITabBarController,UITableViewController,UIVideoEditorController,UIViewController,VNDocumentCameraViewController
public interface UIContentContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CGSizepreferredContentSize()API-Since: 8.0voidpreferredContentSizeDidChangeForChildContentContainer(@NotNull UIContentContainer container)API-Since: 8.0CGSizesizeForChildContentContainerWithParentContainerSize(@NotNull UIContentContainer container, CGSize parentSize)When the content container forwards viewWillTransitionToSize:withTransitionCoordinator: to its children, it will call this method to determine what size to send them.voidsystemLayoutFittingSizeDidChangeForChildContentContainer(@NotNull UIContentContainer container)Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout.voidviewWillTransitionToSizeWithTransitionCoordinator(CGSize size, @NotNull UIViewControllerTransitionCoordinator coordinator)This method is called when the view controller's view's size is changed by its parent (i.e.voidwillTransitionToTraitCollectionWithTransitionCoordinator(@NotNull UITraitCollection newCollection, @NotNull UIViewControllerTransitionCoordinator coordinator)This method is called when the view controller's trait collection is changed by its parent.
-
-
-
Method Detail
-
preferredContentSize
CGSize preferredContentSize()
API-Since: 8.0
-
preferredContentSizeDidChangeForChildContentContainer
void preferredContentSizeDidChangeForChildContentContainer(@NotNull @NotNull UIContentContainer container)API-Since: 8.0
-
sizeForChildContentContainerWithParentContainerSize
CGSize sizeForChildContentContainerWithParentContainerSize(@NotNull @NotNull UIContentContainer container, CGSize parentSize)
When the content container forwards viewWillTransitionToSize:withTransitionCoordinator: to its children, it will call this method to determine what size to send them. If the returned size is the same as the child container's current size, viewWillTransitionToSize:withTransitionCoordinator: will not be called. API-Since: 8.0
-
systemLayoutFittingSizeDidChangeForChildContentContainer
void systemLayoutFittingSizeDidChangeForChildContentContainer(@NotNull @NotNull UIContentContainer container)Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout. If the child's view is using auto layout and the -systemLayoutSizeFittingSize: of the view changes, -systemLayoutFittingSizeDidChangeForChildContentContainer: will be sent to the view controller's parent. API-Since: 8.0
-
viewWillTransitionToSizeWithTransitionCoordinator
void viewWillTransitionToSizeWithTransitionCoordinator(CGSize size, @NotNull @NotNull UIViewControllerTransitionCoordinator coordinator)
This method is called when the view controller's view's size is changed by its parent (i.e. for the root view controller when its window rotates or is resized). If you override this method, you should either call super to propagate the change to children or manually forward the change to children. API-Since: 8.0
-
willTransitionToTraitCollectionWithTransitionCoordinator
void willTransitionToTraitCollectionWithTransitionCoordinator(@NotNull @NotNull UITraitCollection newCollection, @NotNull @NotNull UIViewControllerTransitionCoordinator coordinator)This method is called when the view controller's trait collection is changed by its parent. If you override this method, you should either call super to propagate the change to children or manually forward the change to children. API-Since: 8.0
-
-