|
1 |
|
2 <!DOCTYPE html |
|
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="mobileconcept"/><meta name="DC.Title" content="ILocation.CancelNotification()"/><meta name="DC.Relation" scheme="URI" content="GUID-DEA4164E-5F03-4B57-97B9-4C6238481F89"/><meta name="DC.Relation" scheme="URI" content="GUID-DBEE8177-7246-4FEE-A0F1-D6AEEA6EA206"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C"/><meta name="DC.Relation" scheme="URI" content="GUID-53CE4DE6-F065-4339-8C18-5C30A9540053"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-7A466B60-88DD-4A3A-B64C-E7300D42DA56"/><title>ILocation.CancelNotification() </title><script type="text/javascript"> |
|
5 function initPage() {} |
|
6 </script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-7A466B60-88DD-4A3A-B64C-E7300D42DA56"><span>ILocation.</span>CancelNotification()</h1><div> |
|
7 <p><strong>Description:</strong></p> |
|
8 <p>The <code>CancelNotification</code> method cancels an outstanding |
|
9 asynchronous call.</p> |
|
10 <p>This is a synchronous method.</p> |
|
11 <p><strong>Syntax:</strong></p> |
|
12 <pre class="codeblock" id="GUID-A0E09CE5-18A6-47FF-853B-1D0168AD7C33-GENIDd0e50583">result = so.ILocation.CancelNotification(criteria);</pre> |
|
13 |
|
14 <p><strong>Arguments:</strong></p> |
|
15 <ul> |
|
16 <li><p><code>criteria</code>:</p> |
|
17 |
|
18 <p>This is an object that specifies whether to cancel a <a href="GUID-150E440F-56E4-4249-8739-A5A7A2050600.html#GUID-150E440F-56E4-4249-8739-A5A7A2050600"><code>GetLocation</code></a> call or a <a href="GUID-7A0190CB-545E-48D2-BAF0-D28E03CDFCA5.html#GUID-7A0190CB-545E-48D2-BAF0-D28E03CDFCA5"><code>Trace</code></a> call. |
|
19 The object must contain the <code>CancelRequestType</code> property |
|
20 (string) that is used to specify the type of call to cancel. The possible |
|
21 values for <code>criteria.CancelRequestType</code> are:</p> |
|
22 <ul> |
|
23 <li><p><code>"GetLocCancel"</code> cancels an asynchronous <code>GetLocation</code> call.</p> |
|
24 </li> |
|
25 <li><p><code>"TraceCancel"</code> cancels a <code>Trace</code> call.</p> |
|
26 </li> |
|
27 </ul> |
|
28 |
|
29 </li> |
|
30 </ul> |
|
31 <p><strong>Return value:</strong></p> |
|
32 <p>The <code>CancelNotification</code> method returns an object |
|
33 that contains an error code and an error message.</p> |
|
34 <div class="tablenoborder"><a name="GUID-6BFF20CA-BCDC-4498-BD31-CE8EA3CB9542"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-6BFF20CA-BCDC-4498-BD31-CE8EA3CB9542" frame="border" border="1" rules="all"><caption><strong>Table: </strong>Return value |
|
35 properties for CancelNotification</caption> |
|
36 |
|
37 <thead align="left"> |
|
38 <tr class="title "><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e49996"> |
|
39 <p>Property</p> |
|
40 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e50001"> |
|
41 <p>Description</p> |
|
42 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e50006"> |
|
43 <p>Value</p> |
|
44 </th></tr> |
|
45 </thead> |
|
46 <tbody> |
|
47 <tr class=""> |
|
48 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e49996 "> |
|
49 <p><code>result.ErrorCode</code></p> |
|
50 </td> |
|
51 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e50001 "> |
|
52 <p>This is a number that specifies a predefined error code.</p> |
|
53 </td> |
|
54 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e50006 "> |
|
55 <p>See <a href="GUID-0A215AF3-59F0-4158-842C-0D7B030E5EA4.html#GUID-0A215AF3-59F0-4158-842C-0D7B030E5EA4">Service API error codes</a>.</p> |
|
56 </td> |
|
57 </tr> |
|
58 <tr class="bg "> |
|
59 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e49996 "> |
|
60 <p><code>result.ErrorMessage</code></p> |
|
61 </td> |
|
62 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e50001 "> |
|
63 <p>This is a text string that describes the error.</p> |
|
64 </td> |
|
65 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e50006 "> |
|
66 <p>See <a href="GUID-DEA4164E-5F03-4B57-97B9-4C6238481F89.html#GUID-DEA4164E-5F03-4B57-97B9-4C6238481F89">Location Service API error messages</a>.</p> |
|
67 </td> |
|
68 </tr> |
|
69 </tbody> |
|
70 </table></div> |
|
71 <p><strong>Example code:</strong></p> |
|
72 <p/> |
|
73 <p>For the complete source of a sample widget |
|
74 that demonstrates how to use this Service API, see <a href="GUID-620340F8-F844-445E-80AA-71C757320B7E.html#GUID-620340F8-F844-445E-80AA-71C757320B7E">the full example</a>.</p> |
|
75 |
|
76 |
|
77 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html> |