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

Syntax

[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

Requirements

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

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

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
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.
[read-only]
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.
[read-only]
PreferredContentSizeSizeF. Gets the preferred size for the content of the container.
[read-only]
PreferredFocusedViewUIView. If not null, indicates the child UIView that should receive focus by default.
[read-only]
PreferredFocusEnvironmentsIUIFocusEnvironment[]. An array of IUIFocusEnvironments that are recursively searched by the system to find the default focused view.
[read-only]
PresentationStyleUIModalPresentationStyle. Gets the preferred presentation style for this controller.
[read-only]
PresentedViewUIView. Gets the view to present.
[read-only]
PresentedViewControllerUIViewController. Gets the view controller being presented.
[read-only]
PresentingViewControllerUIViewController. Gets the view controller that is the presentation starting point.
[read-only]
ShouldPresentInFullscreenBoolean. Gets whether the presentation covers the whole screen.
[read-only]
ShouldRemovePresentersViewBoolean. Gets whether to remove the presenting view controller view when the presentation animations finish.
[read-only]
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
ContainerViewDidLayoutSubviews()
Notifies this presentation controller that layout has ended on the views in the container view.
ContainerViewWillLayoutSubviews()
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.
DismissalTransitionDidEnd(Boolean)
Notifies this presentation controller that dismissal animations are finished.
DismissalTransitionWillBegin()
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.
PreferredContentSizeDidChangeForChildContentContainer(IUIContentContainer)
Notifies this controller that the preferred size for content for a specified child container has changed.
PresentationTransitionDidEnd(Boolean)
Notifies this presentation controller that presentation animations have finished.
PresentationTransitionWillBegin()
Notifies this presentation contoller that layout will begin on the views in the container.
SetNeedsFocusUpdate()
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.
SystemLayoutFittingSizeDidChangeForChildContentContainer(IUIContentContainer)
Notifies this container that auto layout resized a specified child container.
TraitCollectionDidChange(UITraitCollection)
Performs custom behavior when the specified current trait collection changes.
UpdateFocusIfNeeded()
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

override
Dispose(Boolean)
Releases the resources used by the UIPresentationController object.