public static interface

Scene.IOnAreaTouchListener

org.andengine.entity.scene.Scene.IOnAreaTouchListener
Known Indirect Subclasses

Class Overview

An interface for a callback to be invoked when a TouchEvent is dispatched to an Scene.ITouchArea area. The callback will be invoked before the TouchEvent is passed to the Scene.ITouchArea.

Summary

Public Methods
abstract boolean onAreaTouched(TouchEvent pSceneTouchEvent, Scene.ITouchArea pTouchArea, float pTouchAreaLocalX, float pTouchAreaLocalY)
Called when a TouchEvent is dispatched to an Scene.ITouchArea.

Public Methods

public abstract boolean onAreaTouched (TouchEvent pSceneTouchEvent, Scene.ITouchArea pTouchArea, float pTouchAreaLocalX, float pTouchAreaLocalY)

Called when a TouchEvent is dispatched to an Scene.ITouchArea. This allows listeners to get a chance to respond before the target onAreaTouched(TouchEvent, float, float) is called.

Parameters
pSceneTouchEvent The TouchEvent object containing full information about the event.
pTouchArea The Scene.ITouchArea that the TouchEvent has been dispatched to.
pTouchAreaLocalX the x coordinate within the area touched.
pTouchAreaLocalY the y coordinate within the area touched.
Returns