public interface

OnActionPerformListener

com.htc.painting.penmenu.OnActionPerformListener

Class Overview

A listener class for monitoring the tap operation on the following buttons of the PenMenu : Redo, Undo, Clear all and Show/hide all. Call setOnActionPerformListener to register listener to PenMenu module. Once one of the action buttons is tagged by pen, the onActionPerform will be called with the ID of the tagged action button. Applications then can handle it and return true to ignore the default action handled by Htc Painting View, or return false to continue the action.

Summary

Public Methods
abstract boolean onActionPerform(int actionId)
Callback invoked when the pen tap on the following action buttons.

Public Methods

public abstract boolean onActionPerform (int actionId)

Callback invoked when the pen tap on the following action buttons.

Parameters
actionId the identification of action button that is tapped by pen.
Returns
  • Return true when application overrides the tap action of this button and don't want the Htc Painting View to react.