67
73
<AssemblyVersion>0.0.0.0</AssemblyVersion>
77
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
70
81
<Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
73
84
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
74
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
85
<summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
76
<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 you invoke the constructor that takes the NSObjectFlag.Empty you taking advatnage 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 you.</para>
77
<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>
78
<para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
79
<para>In general, if your constructors invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, you should instead chain to the proper constructor in your class. </para>
80
<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>
87
<para>This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:</para>
84
// The NSObjectFlag merely allocates the object and registers the
85
// C# class with the Objective-C runtime if necessary, but no actual
86
// initXxx method is invoked, that is done later in the constructor
88
// This is taken from MonoMac's source code:
90
[Export ("initWithFrame:")]
91
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
93
// Invoke the init method now.
94
var initWithFrame = new Selector ("initWithFrame:").Handle;
96
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
98
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
90
public class MyClass : BaseClass {
91
[Export ("initWithFoo:")]
92
public MyClass (string foo) : base (NSObjectFlag.Empty)
867
868
<Member MemberName="DecidePolicyForNavigation">
868
<MemberSignature Language="C#" Value="public event EventHandler<MonoMac.WebKit.WebNavigatioPolicyEventArgs> DecidePolicyForNavigation;" />
869
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class MonoMac.WebKit.WebNavigatioPolicyEventArgs> DecidePolicyForNavigation" />
869
<MemberSignature Language="C#" Value="public event EventHandler<MonoMac.WebKit.WebNavigationPolicyEventArgs> DecidePolicyForNavigation;" />
870
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class MonoMac.WebKit.WebNavigationPolicyEventArgs> DecidePolicyForNavigation" />
870
871
<MemberType>Event</MemberType>
872
873
<AssemblyVersion>0.0.0.0</AssemblyVersion>
875
<ReturnType>System.EventHandler<MonoMac.WebKit.WebNavigatioPolicyEventArgs></ReturnType>
876
<ReturnType>System.EventHandler<MonoMac.WebKit.WebNavigationPolicyEventArgs></ReturnType>
878
879
<summary>Event raised by the object.</summary>
977
978
<param name="disposing">
978
979
<para>If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources; If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</para>
980
<summary>Releases the resourced used by the WebView object.</summary>
981
<summary>Releases the resources used by the WebView object.</summary>
982
983
<para>This Dispose method releases the resources used by the WebView class.</para>
983
984
<para>This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposting <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
1000
1001
<summary>To be added.</summary>
1001
<value>To be added.</value>
1003
<para>(More documentation for this node is coming)</para>
1004
<para tool="nullallowed">This value can be <see langword="null" />.</para>
1002
1006
<remarks>To be added.</remarks>
1179
1183
<summary>To be added.</summary>
1180
<value>To be added.</value>
1185
<para>(More documentation for this node is coming)</para>
1186
<para tool="nullallowed">This value can be <see langword="null" />.</para>
1181
1188
<remarks>To be added.</remarks>
2021
2028
<summary>To be added.</summary>
2022
<value>To be added.</value>
2030
<para>(More documentation for this node is coming)</para>
2031
<para tool="nullallowed">This value can be <see langword="null" />.</para>
2023
2033
<remarks>To be added.</remarks>
2299
2309
<summary>To be added.</summary>
2300
<value>To be added.</value>
2311
<para>(More documentation for this node is coming)</para>
2312
<para tool="nullallowed">This value can be <see langword="null" />.</para>
2301
2314
<remarks>To be added.</remarks>
2843
2856
<summary>To be added.</summary>
2844
<value>To be added.</value>
2858
<para>(More documentation for this node is coming)</para>
2859
<para tool="nullallowed">This value can be <see langword="null" />.</para>
2845
2861
<remarks>To be added.</remarks>
3590
3606
<summary>To be added.</summary>
3591
<value>To be added.</value>
3608
<para>(More documentation for this node is coming)</para>
3609
<para tool="nullallowed">This value can be <see langword="null" />.</para>
3592
3611
<remarks>To be added.</remarks>
3614
3633
<summary>To be added.</summary>
3615
<value>To be added.</value>
3635
<para>(More documentation for this node is coming)</para>
3636
<para tool="nullallowed">This value can be <see langword="null" />.</para>
3616
3638
<remarks>To be added.</remarks>
3638
3660
<summary>To be added.</summary>
3639
<value>To be added.</value>
3662
<para>(More documentation for this node is coming)</para>
3663
<para tool="nullallowed">This value can be <see langword="null" />.</para>
3640
3665
<remarks>To be added.</remarks>
3662
3687
<summary>To be added.</summary>
3663
<value>To be added.</value>
3689
<para>(More documentation for this node is coming)</para>
3690
<para tool="nullallowed">This value can be <see langword="null" />.</para>
3664
3692
<remarks>To be added.</remarks>
3686
3714
<summary>To be added.</summary>
3687
<value>To be added.</value>
3716
<para>(More documentation for this node is coming)</para>
3717
<para tool="nullallowed">This value can be <see langword="null" />.</para>
3688
3719
<remarks>To be added.</remarks>