70
77
<AssemblyVersion>0.0.0.0</AssemblyVersion>
81
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
73
85
<Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
76
88
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
77
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
89
<summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
79
<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>
80
<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>
81
<para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
82
<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>
83
<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>
91
<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>
87
// The NSObjectFlag merely allocates the object and registers the
88
// C# class with the Objective-C runtime if necessary, but no actual
89
// initXxx method is invoked, that is done later in the constructor
91
// This is taken from MonoMac's source code:
93
[Export ("initWithFrame:")]
94
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
96
// Invoke the init method now.
97
var initWithFrame = new Selector ("initWithFrame:").Handle;
99
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
101
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
94
public class MyClass : BaseClass {
95
[Export ("initWithFoo:")]
96
public MyClass (string foo) : base (NSObjectFlag.Empty)
149
151
<remarks>To be added.</remarks>
154
<Member MemberName="DeferredUpdatesFinished">
155
<MemberSignature Language="C#" Value="public virtual void DeferredUpdatesFinished (MonoMac.CoreLocation.CLLocationManager manager, MonoMac.Foundation.NSError error);" />
156
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DeferredUpdatesFinished(class MonoMac.CoreLocation.CLLocationManager manager, class MonoMac.Foundation.NSError error) cil managed" />
157
<MemberType>Method</MemberType>
159
<AssemblyVersion>0.0.0.0</AssemblyVersion>
163
<AttributeName>MonoMac.Foundation.Export("locationManager:didFinishDeferredUpdatesWithError:")</AttributeName>
167
<ReturnType>System.Void</ReturnType>
170
<Parameter Name="manager" Type="MonoMac.CoreLocation.CLLocationManager" />
171
<Parameter Name="error" Type="MonoMac.Foundation.NSError" />
174
<param name="manager">To be added.</param>
175
<param name="error">To be added.</param>
176
<summary>To be added.</summary>
177
<remarks>To be added.</remarks>
152
180
<Member MemberName="Failed">
153
181
<MemberSignature Language="C#" Value="public virtual void Failed (MonoMac.CoreLocation.CLLocationManager manager, MonoMac.Foundation.NSError error);" />
154
182
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Failed(class MonoMac.CoreLocation.CLLocationManager manager, class MonoMac.Foundation.NSError error) cil managed" />
175
203
<remarks>To be added.</remarks>
206
<Member MemberName="LocationsUpdated">
207
<MemberSignature Language="C#" Value="public virtual void LocationsUpdated (MonoMac.CoreLocation.CLLocationManager manager, MonoMac.CoreLocation.CLLocation[] locations);" />
208
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void LocationsUpdated(class MonoMac.CoreLocation.CLLocationManager manager, class MonoMac.CoreLocation.CLLocation[] locations) cil managed" />
209
<MemberType>Method</MemberType>
211
<AssemblyVersion>0.0.0.0</AssemblyVersion>
215
<AttributeName>MonoMac.Foundation.Export("locationManager:didUpdateLocations:")</AttributeName>
219
<ReturnType>System.Void</ReturnType>
222
<Parameter Name="manager" Type="MonoMac.CoreLocation.CLLocationManager" />
223
<Parameter Name="locations" Type="MonoMac.CoreLocation.CLLocation[]" />
226
<param name="manager">To be added.</param>
227
<param name="locations">To be added.</param>
228
<summary>To be added.</summary>
229
<remarks>To be added.</remarks>
232
<Member MemberName="LocationUpdatesPaused">
233
<MemberSignature Language="C#" Value="public virtual void LocationUpdatesPaused (MonoMac.CoreLocation.CLLocationManager manager);" />
234
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void LocationUpdatesPaused(class MonoMac.CoreLocation.CLLocationManager manager) cil managed" />
235
<MemberType>Method</MemberType>
237
<AssemblyVersion>0.0.0.0</AssemblyVersion>
241
<AttributeName>MonoMac.Foundation.Export("locationManagerDidPauseLocationUpdates:")</AttributeName>
245
<ReturnType>System.Void</ReturnType>
248
<Parameter Name="manager" Type="MonoMac.CoreLocation.CLLocationManager" />
251
<param name="manager">To be added.</param>
252
<summary>To be added.</summary>
253
<remarks>To be added.</remarks>
256
<Member MemberName="LocationUpdatesResumed">
257
<MemberSignature Language="C#" Value="public virtual void LocationUpdatesResumed (MonoMac.CoreLocation.CLLocationManager manager);" />
258
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void LocationUpdatesResumed(class MonoMac.CoreLocation.CLLocationManager manager) cil managed" />
259
<MemberType>Method</MemberType>
261
<AssemblyVersion>0.0.0.0</AssemblyVersion>
265
<AttributeName>MonoMac.Foundation.Export("locationManagerDidResumeLocationUpdates:")</AttributeName>
269
<ReturnType>System.Void</ReturnType>
272
<Parameter Name="manager" Type="MonoMac.CoreLocation.CLLocationManager" />
275
<param name="manager">To be added.</param>
276
<summary>To be added.</summary>
277
<remarks>To be added.</remarks>
178
280
<Member MemberName="ShouldDisplayHeadingCalibration">
179
281
<MemberSignature Language="C#" Value="public virtual bool ShouldDisplayHeadingCalibration (MonoMac.CoreLocation.CLLocationManager manager);" />
180
282
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool ShouldDisplayHeadingCalibration(class MonoMac.CoreLocation.CLLocationManager manager) cil managed" />