iOS Guides | Samples

MonoTouch.UIKit.UIPresentationController Class

Manages the user experience for advanced transitions and presentation of UIViewControllers whose UIViewController.ModalPresentationStyle is UIModalPresentationStyle.Custom.

See Also: UIPresentationController


[MonoTouch.Foundation.Register("UIPresentationController", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIPresentationController : NSObject, IUIAppearanceContainer, IUIContentContainer, IUIFocusEnvironment, IUITraitEnvironment, IDisposable

Related content


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.UIKit.UIPresentationController are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

ClassHandleIntPtr. The handle for this class.
ContainerViewUIView. Gets the UIView in which a presentation occurs.
DelegateUIAdaptivePresentationControllerDelegate. An instance of the MonoTouch.UIKit.UIAdaptivePresentationControllerDelegate model class which acts as the class delegate.
FrameOfPresentedViewInContainerViewRectangleF. Gets the frame rectangle that the controller assigns to the presented view at the end of animations.
OverrideTraitCollectionUITraitCollection. Gets and sets additional traits for managed view controllers.
PreferredContentSizeSizeF. Gets the preferred size for the content of the container.
PreferredFocusedViewUIView. If not null, indicates the child UIView that should receive focus by default.
PreferredFocusEnvironmentsIUIFocusEnvironment[]. An array of IUIFocusEnvironments that are recursively searched by the system to find the default focused view.
PresentationStyleUIModalPresentationStyle. Gets the preferred presentation style for this controller.
PresentedViewUIView. Gets the view to present.
PresentedViewControllerUIViewController. Gets the view controller being presented.
PresentingViewControllerUIViewController. Gets the view controller that is the presentation starting point.
ShouldPresentInFullscreenBoolean. Gets whether the presentation covers the whole screen.
ShouldRemovePresentersViewBoolean. Gets whether to remove the presenting view controller view when the presentation animations finish.
TraitCollectionUITraitCollection. Gets the collection of traits for this presentation controller.
WeakDelegateNSObject. An object that can respond to the delegate protocol for this type

Public Methods

AdaptivePresentationStyle() : UIModalPresentationStyle
Gets the presentation style to use when the app changes in size.
AdaptivePresentationStyle(UITraitCollection) : UIModalPresentationStyle
Notifies this presentation controller that layout has ended on the views in the container view.
Notifies this presentation controller that layout will begin on the views in the container view.
DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)
Indicates that the focus changed as detailed in the context.
Notifies this presentation controller that dismissal animations are finished.
Notifies this presentation controller that dismissal animations will begin.
GetSizeForChildContentContainer(IUIContentContainer, SizeF) : SizeF
Gets the size of the content of the specified child IUIContentContainer by using the size of the parent container.
Notifies this controller that the preferred size for content for a specified child container has changed.
Notifies this presentation controller that presentation animations have finished.
Notifies this presentation contoller that layout will begin on the views in the container.
When this is the active focus environment, requests a focus update, which can potentially change the UIView.PreferredFocusView. (See also UIView.UpdateFocusIfNeeded.)
ShouldUpdateFocus(UIFocusUpdateContext) : Boolean
Called prior to the UIPresentationController.ContainerView either losing or receiving focus. If either focus environment returns false, the focus update is canceled.
Notifies this container that auto layout resized a specified child container.
Performs custom behavior when the specified current trait collection changes.
If any focus environment has a pending update, this method forces an immediate focus update. Unlike UIPresentationController.SetNeedsFocusUpdate, this method may be called by any UIPresentationController, whether it currently contains focus or not.
ViewWillTransitionToSize(SizeF, IUIViewControllerTransitionCoordinator)
Notifies this that the size of it's view will change to the specified value, as coordinated by coordinator.
WillTransitionToTraitCollection(UITraitCollection, IUIViewControllerTransitionCoordinator)
Notifies this that its trait collection will change to traitCollection, as coordinated by coordinator.

Protected Methods

Releases the resources used by the UIPresentationController object.