~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/docs/en/MonoMac.Foundation/NSTimer.xml

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
  </Attributes>
17
17
  <Docs>
18
18
    <summary>The timer can trigger actions at certain time intervals.</summary>
19
 
    <remarks>To be added.</remarks>
 
19
    <remarks>
 
20
    </remarks>
20
21
  </Docs>
21
22
  <Members>
22
23
    <Member MemberName=".ctor">
28
29
      </AssemblyInfo>
29
30
      <Attributes>
30
31
        <Attribute>
31
 
          <AttributeName>MonoMac.Foundation.Export("init")</AttributeName>
 
32
          <AttributeName>System.Obsolete("This instance of NSTimer would be unusable. Symbol kept for binary compatibility", true)</AttributeName>
32
33
        </Attribute>
33
34
      </Attributes>
34
35
      <Parameters />
35
36
      <Docs>
36
 
        <summary>Default constructor that initializes a new instance of this class with no parameters.</summary>
37
 
        <remarks>
38
 
        </remarks>
 
37
        <summary>To be added.</summary>
 
38
        <remarks>To be added.</remarks>
39
39
      </Docs>
40
40
    </Member>
41
41
    <Member MemberName=".ctor">
49
49
        <Attribute>
50
50
          <AttributeName>MonoMac.Foundation.Export("initWithCoder:")</AttributeName>
51
51
        </Attribute>
 
52
        <Attribute>
 
53
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
54
        </Attribute>
52
55
      </Attributes>
53
56
      <Parameters>
54
57
        <Parameter Name="coder" Type="MonoMac.Foundation.NSCoder" />
66
69
      <AssemblyInfo>
67
70
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
68
71
      </AssemblyInfo>
 
72
      <Attributes>
 
73
        <Attribute>
 
74
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
75
        </Attribute>
 
76
      </Attributes>
69
77
      <Parameters>
70
78
        <Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
71
79
      </Parameters>
72
80
      <Docs>
73
81
        <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>
 
82
        <summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
75
83
        <remarks>
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>
 
84
          <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>
81
85
          <example>
82
86
            <code lang="C#">
83
 
//
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
87
 
//
88
 
// This is taken from MonoMac's source code:
89
 
//
90
 
[Export ("initWithFrame:")]
91
 
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
92
 
{
93
 
// Invoke the init method now.
94
 
        var initWithFrame = new Selector ("initWithFrame:").Handle;
95
 
        if (IsDirectBinding)
96
 
                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
97
 
        else
98
 
                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
99
 
}
 
87
public class MyClass : BaseClass {
 
88
    [Export ("initWithFoo:")]
 
89
    public MyClass (string foo) : base (NSObjectFlag.Empty)
 
90
    {
 
91
        ...
 
92
    }
100
93
</code>
101
94
          </example>
102
95
        </remarks>
109
102
      <AssemblyInfo>
110
103
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
111
104
      </AssemblyInfo>
 
105
      <Attributes>
 
106
        <Attribute>
 
107
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
108
        </Attribute>
 
109
      </Attributes>
112
110
      <Parameters>
113
111
        <Parameter Name="handle" Type="System.IntPtr" />
114
112
      </Parameters>
135
133
      </Parameters>
136
134
      <Docs>
137
135
        <param name="date">Time at which the timer will be fired.</param>
138
 
        <param name="when">To be added.</param>
139
 
        <param name="action">To be added.</param>
 
136
        <param name="when">This is the duration between when the timer will fire. </param>
 
137
        <param name="action">The action to be performed when the timer fires.</param>
140
138
        <param name="repeats">Whether this timer should repeat automatically (true) or will be invalidated after firing the first time (false).</param>
141
 
        <summary>To be added.</summary>
142
 
        <remarks>To be added.</remarks>
 
139
        <summary>
 
140
        </summary>
 
141
        <remarks>To be added.
 
142
        </remarks>
143
143
      </Docs>
144
144
    </Member>
145
145
    <Member MemberName=".ctor">
165
165
      <Docs>
166
166
        <param name="date">Time at which the timer will be fired.</param>
167
167
        <param name="seconds">For repeating timers, the number of seconds to wait before firing the timer again.</param>
168
 
        <param name="target">To be added.</param>
169
 
        <param name="selector">To be added.</param>
170
 
        <param name="userInfo">To be added.</param>
 
168
        <param name="target">This is an object containing the method to be invoked when the timer fires.</param>
 
169
        <param name="selector">The method on <paramref name="target" /> that will be invoked.</param>
 
170
        <param name="userInfo">
 
171
          <para>User info for the timer.</para>
 
172
          <para tool="nullallowed">This parameter can be <see langword="null" />.</para>
 
173
        </param>
171
174
        <param name="repeats">Whether this timer should repeat automatically (true) or will be invalidated after firing the first time (false).</param>
172
 
        <summary>To be added.</summary>
173
 
        <remarks>To be added.</remarks>
 
175
        <summary>
 
176
        </summary>
 
177
        <remarks>To be added.
 
178
        </remarks>
174
179
      </Docs>
175
180
    </Member>
176
181
    <Member MemberName="ClassHandle">
204
209
        <Parameter Name="action" Type="MonoMac.Foundation.NSAction" />
205
210
      </Parameters>
206
211
      <Docs>
207
 
        <param name="seconds">To be added.</param>
208
 
        <param name="action">To be added.</param>
 
212
        <param name="seconds">The number of seconds between the timer firing.</param>
 
213
        <param name="action">Some action to be performed when the timer fires.</param>
209
214
        <summary>Creates a repeating timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode.</summary>
210
 
        <returns>To be added.</returns>
211
 
        <remarks>To be added.</remarks>
 
215
        <returns>
 
216
        </returns>
 
217
        <remarks>To be added.
 
218
        </remarks>
212
219
      </Docs>
213
220
    </Member>
214
221
    <Member MemberName="CreateRepeatingScheduledTimer">
226
233
        <Parameter Name="action" Type="MonoMac.Foundation.NSAction" />
227
234
      </Parameters>
228
235
      <Docs>
229
 
        <param name="when">To be added.</param>
230
 
        <param name="action">To be added.</param>
 
236
        <param name="when">The time when the timer will first fire.</param>
 
237
        <param name="action">The action to be performed when the timer fires.</param>
231
238
        <summary>Creates a repeating timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode.</summary>
232
 
        <returns>To be added.</returns>
233
 
        <remarks>To be added.</remarks>
 
239
        <returns>
 
240
        </returns>
 
241
        <remarks>To be added.
 
242
        </remarks>
234
243
      </Docs>
235
244
    </Member>
236
245
    <Member MemberName="CreateRepeatingTimer">
248
257
        <Parameter Name="action" Type="MonoMac.Foundation.NSAction" />
249
258
      </Parameters>
250
259
      <Docs>
251
 
        <param name="seconds">To be added.</param>
252
 
        <param name="action">To be added.</param>
 
260
        <param name="seconds">The number of seconds between the timer firing.</param>
 
261
        <param name="action">The action to be performed.</param>
253
262
        <summary>Creates a repeating timer with the specified parameters that can later be added to an NSRunLoop.</summary>
254
 
        <returns>To be added.</returns>
255
 
        <remarks>To be added.</remarks>
 
263
        <returns>
 
264
        </returns>
 
265
        <remarks>To be added.
 
266
        </remarks>
256
267
      </Docs>
257
268
    </Member>
258
269
    <Member MemberName="CreateRepeatingTimer">
273
284
        <param name="when">To be added.</param>
274
285
        <param name="action">To be added.</param>
275
286
        <summary>Creates a repeating timer with the specified parameters that can later be added to an NSRunLoop.</summary>
276
 
        <returns>To be added.</returns>
277
 
        <remarks>To be added.</remarks>
 
287
        <returns>The timespan between firings of the timer.</returns>
 
288
        <remarks>To be added.
 
289
        </remarks>
278
290
      </Docs>
279
291
    </Member>
280
292
    <Member MemberName="CreateScheduledTimer">
292
304
        <Parameter Name="action" Type="MonoMac.Foundation.NSAction" />
293
305
      </Parameters>
294
306
      <Docs>
295
 
        <param name="seconds">To be added.</param>
296
 
        <param name="action">To be added.</param>
 
307
        <param name="seconds">The number of seconds between the firings of the timer.</param>
 
308
        <param name="action">The action to be performed.</param>
297
309
        <summary>Creates a timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode.</summary>
298
 
        <returns>To be added.</returns>
299
 
        <remarks>To be added.</remarks>
 
310
        <returns>
 
311
        </returns>
 
312
        <remarks>To be added.
 
313
        </remarks>
300
314
      </Docs>
301
315
    </Member>
302
316
    <Member MemberName="CreateScheduledTimer">
314
328
        <Parameter Name="action" Type="MonoMac.Foundation.NSAction" />
315
329
      </Parameters>
316
330
      <Docs>
317
 
        <param name="when">To be added.</param>
318
 
        <param name="action">To be added.</param>
 
331
        <param name="when">The interval between firings of the timer.</param>
 
332
        <param name="action">The action to be performed.</param>
319
333
        <summary>Creates a timer with the specified parameters that can later be added to an NSRunLoop.</summary>
320
 
        <returns>To be added.</returns>
321
 
        <remarks>To be added.</remarks>
 
334
        <returns>
 
335
        </returns>
 
336
        <remarks>To be added.
 
337
        </remarks>
322
338
      </Docs>
323
339
    </Member>
324
340
    <Member MemberName="CreateScheduledTimer">
344
360
        <Parameter Name="repeats" Type="System.Boolean" />
345
361
      </Parameters>
346
362
      <Docs>
347
 
        <param name="seconds">To be added.</param>
348
 
        <param name="target">To be added.</param>
349
 
        <param name="selector">To be added.</param>
350
 
        <param name="userInfo">To be added.</param>
 
363
        <param name="seconds">The number of seconds between firings of the timer.</param>
 
364
        <param name="target">An object that will be invoked when the timer fires.</param>
 
365
        <param name="selector">The method to invoke on <paramref name="target" />.</param>
 
366
        <param name="userInfo">
 
367
          <para>Custom user info for the timer.</para>
 
368
          <para tool="nullallowed">This parameter can be <see langword="null" />.</para>
 
369
        </param>
351
370
        <param name="repeats">Whether this timer should repeat automatically (true) or will be invalidated after firing the first time (false).</param>
352
371
        <summary>Creates a timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode. </summary>
353
 
        <returns>To be added.</returns>
354
 
        <remarks>To be added.</remarks>
 
372
        <returns>
 
373
        </returns>
 
374
        <remarks>To be added.
 
375
        </remarks>
355
376
      </Docs>
356
377
    </Member>
357
378
    <Member MemberName="CreateTimer">
369
390
        <Parameter Name="action" Type="MonoMac.Foundation.NSAction" />
370
391
      </Parameters>
371
392
      <Docs>
372
 
        <param name="seconds">To be added.</param>
373
 
        <param name="action">To be added.</param>
 
393
        <param name="seconds">The number of seconds until the <paramref name="action" /> is invoked.</param>
 
394
        <param name="action">Some action to be performed.</param>
374
395
        <summary>Creates a timer object that can be later added to an NSRunLoop.</summary>
375
 
        <returns>To be added.</returns>
376
 
        <remarks>To be added.</remarks>
 
396
        <returns>
 
397
        </returns>
 
398
        <remarks>To be added.
 
399
        </remarks>
377
400
      </Docs>
378
401
    </Member>
379
402
    <Member MemberName="CreateTimer">
391
414
        <Parameter Name="action" Type="MonoMac.Foundation.NSAction" />
392
415
      </Parameters>
393
416
      <Docs>
394
 
        <param name="when">To be added.</param>
395
 
        <param name="action">To be added.</param>
 
417
        <param name="when">The length of time until the <paramref name="action" /> is invoked.</param>
 
418
        <param name="action">Some action to be performed.</param>
396
419
        <summary>Creates a timer object that can be later added to an NSRunLoop.</summary>
397
 
        <returns>To be added.</returns>
398
 
        <remarks>To be added.</remarks>
 
420
        <returns>
 
421
        </returns>
 
422
        <remarks>To be added.
 
423
        </remarks>
399
424
      </Docs>
400
425
    </Member>
401
426
    <Member MemberName="CreateTimer">
421
446
        <Parameter Name="repeats" Type="System.Boolean" />
422
447
      </Parameters>
423
448
      <Docs>
424
 
        <param name="seconds">To be added.</param>
425
 
        <param name="target">To be added.</param>
426
 
        <param name="selector">To be added.</param>
427
 
        <param name="userInfo">To be added.</param>
 
449
        <param name="seconds">The number of seconds between firings of the timer.</param>
 
450
        <param name="target">An object that will be invoked when the timer fires.</param>
 
451
        <param name="selector">The method that will be invoked on <paramref name="target" />.</param>
 
452
        <param name="userInfo">
 
453
          <para>Custom user information.</para>
 
454
          <para tool="nullallowed">This parameter can be <see langword="null" />.</para>
 
455
        </param>
428
456
        <param name="repeats">Whether this timer should repeat automatically (true) or will be invalidated after firing the first time (false).</param>
429
457
        <summary>Creates a timer object that can be later added to an NSRunLoop.</summary>
430
 
        <returns>To be added.</returns>
431
 
        <remarks>To be added.</remarks>
 
458
        <returns>
 
459
        </returns>
 
460
        <remarks>To be added.
 
461
        </remarks>
432
462
      </Docs>
433
463
    </Member>
434
464
    <Member MemberName="Dispose">
448
478
        <param name="disposing">
449
479
          <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>
450
480
        </param>
451
 
        <summary>Releases the resourced used by the NSTimer object.</summary>
 
481
        <summary>Releases the resources used by the NSTimer object.</summary>
452
482
        <remarks>
453
483
          <para>This Dispose method releases the resources used by the NSTimer class.</para>
454
484
          <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>
474
504
      </ReturnValue>
475
505
      <Parameters />
476
506
      <Docs>
477
 
        <summary>To be added.</summary>
478
 
        <remarks>To be added.</remarks>
 
507
        <summary>Causes the action to be performed.</summary>
 
508
        <remarks>To be added.
 
509
        </remarks>
479
510
      </Docs>
480
511
    </Member>
481
512
    <Member MemberName="FireDate">
497
528
        <ReturnType>MonoMac.Foundation.NSDate</ReturnType>
498
529
      </ReturnValue>
499
530
      <Docs>
500
 
        <summary>To be added.</summary>
501
 
        <value>To be added.</value>
502
 
        <remarks>To be added.</remarks>
 
531
        <summary>The date at with the action will be performed.</summary>
 
532
        <value>
 
533
        </value>
 
534
        <remarks>If the timer is no longer valid, then this will return the last date the action was performed.</remarks>
503
535
      </Docs>
504
536
    </Member>
505
537
    <Member MemberName="Invalidate">
539
571
        <ReturnType>System.Boolean</ReturnType>
540
572
      </ReturnValue>
541
573
      <Docs>
542
 
        <summary>To be added.</summary>
543
 
        <value>To be added.</value>
544
 
        <remarks>To be added.</remarks>
 
574
        <summary>Returns <see langword="true" /> if the the timer will still fire at some point in the future.</summary>
 
575
        <value>
 
576
        </value>
 
577
        <remarks>To be added.
 
578
        </remarks>
545
579
      </Docs>
546
580
    </Member>
547
581
    <Member MemberName="TimeInterval">
560
594
        <ReturnType>System.Double</ReturnType>
561
595
      </ReturnValue>
562
596
      <Docs>
563
 
        <summary>To be added.</summary>
564
 
        <value>To be added.</value>
565
 
        <remarks>To be added.</remarks>
 
597
        <summary>The time interval for the timer.</summary>
 
598
        <value>
 
599
        </value>
 
600
        <remarks>Will return 0 for a non-repeating timer.</remarks>
566
601
      </Docs>
567
602
    </Member>
568
603
    <Member MemberName="UserInfo">
581
616
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
582
617
      </ReturnValue>
583
618
      <Docs>
584
 
        <summary>To be added.</summary>
585
 
        <value>To be added.</value>
586
 
        <remarks>To be added.</remarks>
 
619
        <summary>Custom user information that has been provided to the timer.</summary>
 
620
        <value>
 
621
        </value>
 
622
        <remarks>To be added.
 
623
        </remarks>
587
624
      </Docs>
588
625
    </Member>
589
626
  </Members>