Titanium.UI.ProgressBar.longpress

Event of Titanium.UI.ProgressBar. Inherited from Titanium.UI.View.
Platform Since
Android 0.8
iPhone 0.8
iPad 0.8

Summary

Fired when the device detects a long press.

Description

A long press is generated by the user touching and holding on a touchscreen. The event occurs before the finger is lifted again. Both a longpress and a longclick can occur together. The differences are that longclick can be generated with the trackball whereas longpress is a touch-only event, and longpress includes x and y coordinates.

Properties

Properties of the object passed to the event callback:
Name Type Summary
source Object

Source object that fired the event.

type String

Name of the event fired.

x Number

X coordinate of the event, in the source view's coordinates.

y Number

Y coordinate of the event, in the source view's coordinates.