Link against: avkon.lib
#include <aknlongtapdetector.h>
Receives pointer events from owner application or owner control and returns location if a long tap event occurs. After short period of time (default 0,15s) animation is displayed next to stylus on the screen to inform the user of long tap functionality. Animation can be turned OFF by application if wanted.
Public Member Functions | |
virtual | ~CAknLongTapDetector () |
Destructor. | |
IMPORT_C void | PointerEventL (const TPointerEvent &aEvent) |
Receives and handles pointer events from owner's HandlePointerEventL() -method. | |
IMPORT_C void | SetTimeDelayBeforeAnimation (const TInt aMicroSeconds) |
Sets new time delay before long tap detector animation starts. | |
IMPORT_C void | SetLongTapDelay (const TInt aMicroSeconds) |
Sets new time delay before long tap detector event is returned. | |
IMPORT_C void | EnableLongTapAnimation (const TBool aAnimation) |
Sets long tap animation ON/OFF. | |
IMPORT_C TBool | IsAnimationRunning () const |
Checks if the animation is running. | |
IMPORT_C void | CancelAnimationL () |
Cancels the long tap animation. | |
void | MonitorWsMessage (const TWsEvent &aEvent) |
This function is used to capture key events during the long tap animation. | |
Static Public Member Functions | |
static IMPORT_C CAknLongTapDetector * | NewL (MAknLongTapDetectorCallBack *aOwner) |
Two-phased constructor. | |
static IMPORT_C CAknLongTapDetector * | NewLC (MAknLongTapDetectorCallBack *aOwner) |
Two-phased constructor. |
|
Destructor. |
|
Cancels the long tap animation. |
|
Sets long tap animation ON/OFF. Default is ON.
|
|
Checks if the animation is running.
|
|
This function is used to capture key events during the long tap animation. If such events are received, the long tap animation is then cancelled. |
|
Two-phased constructor.
|
|
Two-phased constructor.
|
|
Receives and handles pointer events from owner's HandlePointerEventL() -method. Used to control timers in detecting long tap events.
|
|
Sets new time delay before long tap detector event is returned. Default delay is 0,8s.
|
|
Sets new time delay before long tap detector animation starts. Default delay is 0,15s.
|