Class cc.TargetedTouchHandler
Extends
cc.TouchHandler.
Defined in: CCTouchHandler.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
MutableSet that contains the claimed touches
|
|
<static> |
cc.TargetedTouchHandler.handlerWithDelegate(delegate, priority, swallow)
Allocates a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not
|
initWithDelegate(delegate, priority, swallow)
Initializes a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not
|
|
Whether or not the touches are swallowed
|
|
setSwallowsTouches(swallowsTouches)
|
- Methods borrowed from class cc.TouchHandler:
- getDelegate, getEnabledSelectors, getPriority, setDelegate, setEnalbedSelectors, setPriority
Method Detail
{Array}
getClaimedTouches()
MutableSet that contains the claimed touches
- Returns:
- {Array}
<static>
{cc.TargetedTouchHandler}
cc.TargetedTouchHandler.handlerWithDelegate(delegate, priority, swallow)
Allocates a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not
- Parameters:
- {cc.TouchDelegate} delegate
- {Number} priority
- {Boolean} swallow
- Returns:
- {cc.TargetedTouchHandler}
{Boolean}
initWithDelegate(delegate, priority, swallow)
Initializes a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not
- Parameters:
- {cc.TouchDelegate} delegate
- {Number} priority
- {Boolean} swallow
- Returns:
- {Boolean}
{Boolean}
isSwallowsTouches()
Whether or not the touches are swallowed
- Returns:
- {Boolean}
setSwallowsTouches(swallowsTouches)
- Parameters:
- {Boolean} swallowsTouches