Archived:How to check for touch support in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

This PySymbian code snippet shows how to check whether a device has touch support.

Article Metadata
Tested with
Devices(s): Nokia N95, Nokia 5800 XpressMusic
CompatibilityPlatform Security
Capabilities: )
Keywords: appuifw
Created: bogdan.galiceanu (24 Mar 2009)
Last edited: hamishwillee (30 May 2013)


This API is available in S60 3rd Edition and S60 5th Edition and was introduced in PySymbian 1.9.3.

Source code

import appuifw
#A try statement is used to prevent the code from crashing on versions prior to 1.9.3
if appuifw.touch_enabled():
appuifw.note(u"Touch is supported")
appuifw.note(u"Touch is not supported")
appuifw.note(u"Feature is not available")


A message indicating the availability of touch is displayed.

This page was last modified on 30 May 2013, at 02:51.
69 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.