Entering content frame

Function documentation getFormFactor Method Locate the document in its SAP Library structure

Use

The getFormFactor method returns the form factor (screen format) of the mobile device.

Features

An important feature for customizing a Web application is the form factor (screen format) of the mobile device on which the application is to be used. Form factor is the physical size and shape of a mobile device. The transitions regarding shape and form of devices can be seamless, and therefore the categorization of exact screen measures for mobile devices is not useful.

The device recognition process returns a value that helps to decide how to build the graphical user interface of a Web application.

Values

The form factor that is returned by the getFormFactor method provides a rough categorization (recommended by SAP) with the following values:

Values

Short Description

Example

PC

Large screen in full VGA format or greater

 

VGA

Screen in full VGA format

 

halfVGA

Screen in half VGA format

 

mediumLandscape

Medium screen size as used by Smartphones

For example
640 x 200 pixel for Nokia Communicator

mediumPortrait

Medium screen size as used by PDA’s (Personal Digital Assistant)

For example
320 x 240 pixel for Pocket PC

160x160 pixel
Palm

phone

Mobile telephone screen

 

unknown

Unknown device

 

Example

You can use this attribute for displaying data in a table. For the mediumPortrait format, which specifies the form factor of a PDA, it is useful to display data in tables, but other options normally have to be chosen for mobile telephones due to their small screen size.

ClientInfo Interface

 

 

Leaving content frame