Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
253 lines (253 sloc) 15.1 KB
<Type Name="UIPopoverControllerDelegate" FullName="UIKit.UIPopoverControllerDelegate">
<TypeSignature Language="C#" Value="public class UIPopoverControllerDelegate : Foundation.NSObject, IDisposable, UIKit.IUIPopoverControllerDelegate" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit UIPopoverControllerDelegate extends Foundation.NSObject implements class ObjCRuntime.INativeObject, class System.IDisposable, class UIKit.IUIPopoverControllerDelegate" />
<TypeSignature Language="DocId" Value="T:UIKit.UIPopoverControllerDelegate" />
<TypeSignature Language="F#" Value="type UIPopoverControllerDelegate = class&#xA; inherit NSObject&#xA; interface IUIPopoverControllerDelegate&#xA; interface INativeObject&#xA; interface IDisposable" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Foundation.NSObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>ObjCRuntime.INativeObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUIPopoverControllerDelegate</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>Foundation.Model</AttributeName>
</Attribute>
<Attribute>
<AttributeName>Foundation.Protocol</AttributeName>
</Attribute>
<Attribute>
<AttributeName>Foundation.Register("UIPopoverControllerDelegate", false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, null)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Delegate class for the <see cref="T:UIKit.UIPopoverController" /> class.</summary>
<remarks>To be added.</remarks>
<related type="externalDocumentation" href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPopoverControllerDelegate_protocol/index.html">Apple documentation for <c>UIPopoverControllerDelegate</c></related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIPopoverControllerDelegate ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIPopoverControllerDelegate.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("init")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Default constructor that initializes a new instance of this class with no parameters.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected UIPopoverControllerDelegate (Foundation.NSObjectFlag t);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Foundation.NSObjectFlag t) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIPopoverControllerDelegate.#ctor(Foundation.NSObjectFlag)" />
<MemberSignature Language="F#" Value="new UIKit.UIPopoverControllerDelegate : Foundation.NSObjectFlag -&gt; UIKit.UIPopoverControllerDelegate" Usage="new UIKit.UIPopoverControllerDelegate t" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="t" Type="Foundation.NSObjectFlag" />
</Parameters>
<Docs>
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
<remarks>
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
<para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
<para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
var initWithFrame = new Selector ("initWithFrame:").Handle;
if (IsDirectBinding)
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
else
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected internal UIPopoverControllerDelegate (IntPtr handle);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIPopoverControllerDelegate.#ctor(System.IntPtr)" />
<MemberSignature Language="F#" Value="new UIKit.UIPopoverControllerDelegate : nativeint -&gt; UIKit.UIPopoverControllerDelegate" Usage="new UIKit.UIPopoverControllerDelegate handle" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="handle">Pointer (handle) to the unmanaged object.</param>
<summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
<remarks>
<para>This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="DidDismiss">
<MemberSignature Language="C#" Value="public virtual void DidDismiss (UIKit.UIPopoverController popoverController);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DidDismiss(class UIKit.UIPopoverController popoverController) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIPopoverControllerDelegate.DidDismiss(UIKit.UIPopoverController)" />
<MemberSignature Language="F#" Value="abstract member DidDismiss : UIKit.UIPopoverController -&gt; unit&#xA;override this.DidDismiss : UIKit.UIPopoverController -&gt; unit" Usage="uIPopoverControllerDelegate.DidDismiss popoverController" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("popoverControllerDidDismissPopover:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="popoverController" Type="UIKit.UIPopoverController" />
</Parameters>
<Docs>
<param name="popoverController">To be added.</param>
<summary>Indicates that the UIPopover was dismissed.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ShouldDismiss">
<MemberSignature Language="C#" Value="public virtual bool ShouldDismiss (UIKit.UIPopoverController popoverController);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool ShouldDismiss(class UIKit.UIPopoverController popoverController) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIPopoverControllerDelegate.ShouldDismiss(UIKit.UIPopoverController)" />
<MemberSignature Language="F#" Value="abstract member ShouldDismiss : UIKit.UIPopoverController -&gt; bool&#xA;override this.ShouldDismiss : UIKit.UIPopoverController -&gt; bool" Usage="uIPopoverControllerDelegate.ShouldDismiss popoverController" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("popoverControllerShouldDismissPopover:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="popoverController" Type="UIKit.UIPopoverController" />
</Parameters>
<Docs>
<param name="popoverController">To be added.</param>
<summary>Whether the popover should be dismissed.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="WillReposition">
<MemberSignature Language="C#" Value="public virtual void WillReposition (UIKit.UIPopoverController popoverController, ref CoreGraphics.CGRect rect, ref UIKit.UIView view);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void WillReposition(class UIKit.UIPopoverController popoverController, valuetype CoreGraphics.CGRect&amp; rect, class UIKit.UIView&amp; view) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIPopoverControllerDelegate.WillReposition(UIKit.UIPopoverController,CoreGraphics.CGRect@,UIKit.UIView@)" />
<MemberSignature Language="F#" Value="abstract member WillReposition : UIKit.UIPopoverController * * -&gt; unit&#xA;override this.WillReposition : UIKit.UIPopoverController * * -&gt; unit" Usage="uIPopoverControllerDelegate.WillReposition (popoverController, rect, view)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("popoverController:willRepositionPopoverToRect:inView:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="popoverController" Type="UIKit.UIPopoverController" />
<Parameter Name="rect" Type="CoreGraphics.CGRect" RefType="ref" />
<Parameter Name="view" Type="UIKit.UIView" RefType="ref" />
</Parameters>
<Docs>
<param name="popoverController">To be added.</param>
<param name="rect">To be added.</param>
<param name="view">To be added.</param>
<summary>Developers should not use this deprecated method.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.