iOS Guides | Samples

MonoTouch.UIKit.IUIContentContainer

Interface representing the required methods (if any) of the protocol UIContentContainer.

See Also: IUIContentContainer

Syntax

[MonoTouch.Foundation.Protocol(Name="UIContentContainer", WrapperType=typeof(MonoTouch.UIKit.UIContentContainerWrapper))]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="PreferredContentSizeDidChangeForChildContentContainer", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="preferredContentSizeDidChangeForChildContentContainer:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SystemLayoutFittingSizeDidChangeForChildContentContainer", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="systemLayoutFittingSizeDidChangeForChildContentContainer:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetSizeForChildContentContainer", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.CoreGraphics.CGSize), Selector="sizeForChildContentContainer:withParentContainerSize:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ViewWillTransitionToSize", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="viewWillTransitionToSize:withTransitionCoordinator:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="WillTransitionToTraitCollection", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="willTransitionToTraitCollection:withTransitionCoordinator:")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.None, GetterSelector="preferredContentSize", IsProperty=true, IsRequired=true, IsStatic=false, Name="PreferredContentSize", PropertyType=typeof(MonoTouch.CoreGraphics.CGSize), Selector="preferredContentSize")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public interface IUIContentContainer : INativeObject, IDisposable

Remarks

This interface contains the required methods (if any) from the protocol defined by UIContentContainer.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the UIContentContainer protocol.

Optional methods (if any) are provided by the UIContentContainer_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Requirements

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

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

Public Properties

[read-only]
PreferredContentSizeSizeF. Gets the preferred size for the content of the container.

Public Methods

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.
SystemLayoutFittingSizeDidChangeForChildContentContainer(IUIContentContainer)
Notifies this container that auto layout resized a specified child container.
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.