To receive long-tap events in your application using the Touch UI utilities API, follow the steps below:
Link the AVKON libraries avkon.lib and eikcoctl.lib to the project file of the application.
Provide an observer class that implements the MAknLongTapDetectorCallBack interface.
Create an instance of the class CAknLongTapDetector and pass pointer events to the long-tap detector.
Receive long-tap events through the observer interface.
Delete the long-tap detector.
Use cases for the long-tap detector are shown in the figure below.
To use the Touch UI utilities long-tap detector in your application, implement the following use cases.
The following use cases are optional, allowing you to set additional properties for your long-tap detector.