New observer interfaces

To support the touch functionality in existing UI components too, S60 5th Edition introduces new observer interfaces to the existing components. These are:

  • Navigation decorator observer

    The navigation decorator observer interface is used in the navigation pane. The interface receives an event indicating that the decorator’s right or left arrow has been tapped (or the navi label), and then the observer implementation can perform an action (for example, raise the volume or change focus to the next tab). This might be useful if you implement custom controls to be included in the navigation control.

    It is defined by MAknNaviDecoratorObserver. The observer can be set by CAknNavigationDecorator::SetNaviDecoratorObserver.

  • Long tap detector

    The long tap detector (CAknLongTapDetector) is an Avkon component that an application or control can use to receive long tap events.

    The long tap handler must inherit from MAknLongTapDetectorCallBack and implement the HandleLongTapEventL call back function for long tap events.

    When the stylus is held down in the same position, an animation starts in about 0.15 s to show that the long tap functionality has started. Animation is provided by AVKON and cannot be changed by the application or control. However, animation can be turned off using the class CAknLongTapDetector in the Touch UI utilities API.

    For implementation infomation, see the Touch UI utilities API specification.

  • Double-click support in lists

    In order to receive double-click events from a list or grid, the object that wishes to be informed must implement and register the MEikListBoxObserver interface via CEikListBox::SetListBoxObserver.

    For implementation information, see Distinguishing between touch and keypad events in listboxes and grids.

  • Title pane touch observer

    The title pane touch observer enables you to provide functionality for title pane touch events. For implementation information, see the Title pane touch observer API specification.