Symbian3/SDK/Source/GUID-C11AF871-56C8-4EA4-A1E0-E2B23372EF84.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Thu, 21 Jan 2010 18:18:20 +0000
changeset 0 89d6a7a84779
permissions -rw-r--r--
Initial contribution of Documentation_content according to Feature bug 1266 bug 1268 bug 1269 bug 1270 bug 1372 bug 1374 bug 1375 bug 1379 bug 1380 bug 1381 bug 1382 bug 1383 bug 1385

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-C11AF871-56C8-4EA4-A1E0-E2B23372EF84" xml:lang="en"><title>Touch
down and hold</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>Touch down and hold is used, for example, to open the Symbian
stylus pop-up menu. Applications can use an animation (starts after 0.15 seconds
from the start of a stylus down event) to indicate that a Touch down and hold
action has been initiated.</p>
<p>On the whole, Touch down and hold may be difficult for users to find, and
therefore its use should be considered carefully. As in the case of task swapping,
the use of Touch down and hold should aim at being analogous to using a long
key press on the hardware keys.</p>
<section id="GUID-F3F82BBF-587D-471E-A2DE-E9248077EE0A"><title>Using
touch down and hold events in C++ applications</title><p>The API to use for
receiving touch down and hold events in applications or controls is the <xref href="GUID-92018B6B-3CBB-434D-9E61-F271C67E98E3.dita">Touch UI utilities API</xref>.</p><p>Use
the class <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknLongTapDetector.html" format="application/java-archive"><codeph>CAknLogTapDetector</codeph></xref> to
receive touch down and hold events, called long tap events in the API reference.</p><p>Your
long tap handler must inherit from the class <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMAknLongTapDetectorCallBack.html" format="application/java-archive"><codeph>MAknLongTapDetectorCallBack</codeph></xref> and implement the <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classMAknLongTapDetectorCallBack.html#fe6ac5bacc8f58579a53889d524e661f" format="application/java-archive"><codeph>MAknLongTapDetectorCallBack::HandleLongTapEventL()</codeph></xref> call
back function.</p></section>
</conbody></concept>