You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Touch Library > enabled

2.2.4 enabled

touch.enabled()

Returns true if the platform supports touch, otherwise false. If touch is supported, it is recommended to use the ppi values to calculate touch target sizes.

Introduced in platform.apiLevel = '2.2'