!--a11y-->
Definition
The
IF_CLIENT_INFO interface provides a range of methods that take into account the different display options for Web applications on different browsers, along with other device-specific properties – such as screen size or input method.Use
In this way, you can use the methods of the
IF_CLIENT_INFO interface when you create Web applications like BSP application, and thus take the – often substantial – differences in the display of Web pages on different devices into account.
You can also use this
Device Recognition Process and the comparable
ClientInfo Interface when developing Java applications.
So that you can estimate the significance for your Web application of the methods described in the following table, some of them have been assigned a priority. For those device properties not assigned a priority, you can decide yourself whether or not you want to use them in your Web application.
Device properties can be categorized by their significance as follows:
|
Prio. |
Title |
Description |
|
1 |
Prerequisite |
This property is prerequisite for running the mobile application at all. In general, these conditions are fulfilled by all "real" devices that fulfil the HTML or WAP standard. Emulators, however, do not fulfil these prerequisites. Thus this property need not be checked in the application. At most, you need a check program that ascertains whether or not an emulator is suitable for executing the application |
|
2 |
Application does not work |
If this property is not assigned a value, the application may crash on some devices – that is, may not be executable |
|
3 |
Loss of information |
If this property is not assigned a value, the application may not show all its information For example, a loss of information may occur if the paragraph attribute for automatic line breaks is switched off (<p mode=nowrap>) and the paragraph (in a WML page) contains text that does not fit on one line. If the mobile device does not support the GET_MARQUEE_TEXT_SUPPORTED property, it is possible that the end of the text is simply truncated. For this reason we advise you to think carefully before switching off the automatic line break property – even if doing so would allow you, for example, to make better use of a small screen on a mobile telephone. |
|
4 |
Unacceptable display |
If this property is not assigned a value, the application may be displayed in a way that does not do justice to the look and feel of the device |
|
5 |
Inappropriate display |
If this property is not assigned a value, the application may not be displayed at its best. However, the display should not actually disturb the user significantly. |
Similarly, some properties are assigned to the markup languages WML (Wireless Markup Language) and HTML (Hypertext Markup Language) – that is, you specify the markup language for which each method is relevant and thus how it can meaningfully be used. For example, the method GET_FRAMES_SUPPORTED is only significant in HTML, since only HTML-enabled browsers can interpret frames. In general, it is HTML browsers on handheld devices like PDAs and pocket PCs, WAP-enabled mobile telephones with small screens cannot display frames, because of their screen interfaces. If the appropriate table column does not contain a value, the method can be used in both markup languages.
The following source code fragment shows how you can access the methods of the
IF_CLIENT_INFO interface:<%@page language="abap"%>
<%
...
data client_info type ref to IF_CLIENT_INFO.
client_info = runtime->client_info.
if client_info->get_title_supported( ) = ‘X’.
...
%>

To obtain more information on using some of the methods of the
Methods
|
Method |
Signature |
Description |
Possible values |
Content type |
Prio. |
| GET_ACCEPT |
method get_accept returning |
Equivalent to the HTTP request-header "userAgent". |
|||
|
GET_ALERTING_SUPPORTED |
method get_alerting_supported |
Specifies whether or not the device supports messaging – for example, using SMS. |
"X" or |
1 |
|
|
GET_ANCHOR_SUPPORTED |
method get_anchor_supported |
Specifies whether or not the <anchor> tag is supported |
"X" or |
WML |
1 |
|
GET_ANCHOR_PREV_SUPPORTED |
method get_anchor_prev_supported |
Specifies whether or not the anchor tag supports a "Back" action |
"X" or |
WML |
|
|
GET_APP_LINKS_SUPPORTED |
method get_app_links_supported |
Specifies whether or not you can call a local application on a device using a special link |
"X" or |
HTML |
3 |
|
GET_APP_LINK_TYPES |
method get_app_link_types |
Specifies what type of application links the device supports |
HTML |
||
| GET_BACK_HARD_WIRED |
method get_back_hard_wired |
Specifies whether or not you can execute the "Back" function using a fixed key without an associated tag |
"X" or |
WML |
4 |
| GET_BACK_LABEL |
method get_back_label |
Specifies whether or not a label attribute must be specified in the <do type=prev> tag to display a label |
"X" or |
WML |
3 |
|
GET_BACK_TO_ANY_URL_SUPPORTED |
method get_back_to_any_url_supported |
Specifies whether the <do type="prev"> tag can lead to any Web address |
"X" or |
WML |
1 |
|
GET_BIG_SUPPORTED |
method get_big_supported |
Specifies whether or not text can be formatted as "large" |
"X" or |
WML |
|
|
GET_BOLD_SUPPORTED |
method get_bold_supported |
Specifies whether or not text can be formatted as "bold" |
"X" or |
WML |
|
| GET_BREAKING_SPACE |
method get_breaking_space |
Returns the smallest character string for an empty space |
|||
| GET_BROWSER_CATEGORY |
method get_browser_category |
Returns the browser category |
„unknown" |
||
| GET_BROWSER_NAME |
method get_browser_name |
Returns the browser name |
„unknown" |
||
| GET_BROWSER_NAME |
method get_browser_os |
Returns the operating system running on the device |
„unknown" |
||
|
GET_BROWSER_VERSION |
method get_browser_version |
Returns the browser version, for example 5.5 |
|||
|
GET_CACHE_ENABLED_BY_DEFAULT |
method get_cache_enabled_by_default |
Specifies whether or not cache memory on the browser is activated by default |
"X" or |
||
|
GET_CERTIFICATES_SUPPORTED |
method get_certificates_supported |
Specifies whether or not the device supports client certificates |
"X" or |
||
| GET_CHAR_HEIGHT |
method get_char_height |
Returns the screen height in rows |
4 |
||
| GET_CHAR_WIDTH |
method get_char_width |
Returns the screen width in characters |
4 |
||
|
GET_COLOR_DEPTH |
method get_color_depth |
Returns the color depth, for example 256 colors |
HTML |
||
|
GET_COLOR_SUPPORTED |
method get_color_supported |
Specifies whether or not the device has a color screen |
"X" or |
HTML |
|
|
GET_CONTENT_TYPE |
method get_content_type |
Returns the content type, for example HTML or WML |
2 |
||
|
GET_CONTENT_TYPE_VERSION |
method get_content_type_version |
Returns the version of the content type – for example, 3.2 for HTML 3.2 or 1.1 for WML 1.1 |
|||
| GET_COOKIES_SUPPORTED |
method get_cookies_supported |
Specifies whether or not browser cookies are supported |
"X" or |
1 |
|
| GET_CSS_SUPPORTED |
method get_css_supported |
Specifies whether or not the browser supports CSSs (Cascading Style Sheets). |
"X" or |
HTML |
4 |
|
GET_CSS_VERSION |
method get_css_version |
Returns the CSS version |
HTML |
||
| GET_DEFAULT_ACTION_DESIGN |
method get_default_action_design returning |
Returns the default design for user interface elements representing an action |
„link" |
WML |
3 |
| GET_DEFAULT_BLOCK_SEPARATOR |
method get_default_block_separator |
Returns the default string used to separate paragraphs |
5 |
||
| GET_DEFAULT_BULLET |
method get_default_bullet |
Returns the default symbol used to indicate points in a list |
WML |
5 |
|
| GET_DEFAULT_FORM_STYLE |
method get_default_form_style |
Returns the default display type for input masks |
„onePage" |
WML |
|
| GET_DEFAULT_MENU_STYLE |
method get_default_menu_style |
Returns the default display type for menus |
„selectionList" |
WML |
4 |
| GET_DEVICE_CATEGORY |
method get_device_category |
Returns the device category |
„unknown" |
||
| GET_DEVICE_NAME |
method get_device_name |
Returns the device name Unique ID for a set of device properties |
|||
|
GET_DOM_SUPPORTED |
method get_dom_supported |
Specifies whether or not the browser supports a Document Object Model (DOM) |
"X" or |
HTML |
|
|
GET_DOM_VERSION |
method get_dom_version |
Returns the Document Object Model (DOM) version supported |
HTML |
||
|
GET_EMPHASIZED_SUPPORTED |
method get_emphasized_supported |
Specifies whether or not text can be formatted as "highlighted" |
"X" or |
WML |
5 |
|
GET_EMULATOR |
method get_emulator |
Specifies whether or not the device is to be categorized as an emulator |
"X" or |
||
| GET_FIELDSET_LAYOUT |
method get_fieldset_layout |
Specifies how input fields that belong together are to be laid out using the <fieldset> tag |
„notSupported" |
WML |
3 |
| GET_FIELDSET_TITLE_VISIBLE |
method get_fieldset_title_visible |
Specifies whether or not the title attribute of the <fieldset> tag is used as label. |
"X" or |
WML |
3 |
|
GET_FONT_PROPORTIONAL |
method get_font_proportional |
Specifies whether or not the default font of the device is a proportional font |
"X" or |
||
| GET_FORM_FACTOR |
method get_form_factor |
Returns the screen format of the device |
„PC" |
3 |
|
| GET_FORM_MENU_SUPPORTED |
method get_form_menu_supported |
Specifies whether or not the browser supports the technique of displaying a selection menu with the input mask |
"X" or |
WML |
4 |
| GET_FRAMES_SUPPORTED |
method get_frames_supported |
Specifies whether or not frames are supported |
"X" or |
HTML |
2 |
|
GET_GRAY_LEVEL |
method get_gray_level |
Returns the number of shades of gray supported in grayscale pictures |
"X" or |
||
|
GET_HORZ_SCROLLING_SUPPORTED |
method get_horz_scrolling_supported |
Specifies whether or not the device has a horizontal scroll bar |
"X" or |
||
| GET_HREF_WITH_PARAMS_SUPPORTED |
method get_href_with_params_supported |
Specifies whether or not an Href attribute in a link can contain URL parameters. |
"X" or |
WML |
2 |
|
GET_HTTP_GET_SUPPORTED |
method get_http_get_supported |
Specifies whether or not the HTTP GET is supported |
"X" or |
WML |
1 |
|
GET_HTTP_POST_SUPPORTED |
method get_http_post_supported |
Specifies whether or not the HTTP POST is supported |
"X" or |
WML |
1 |
|
GET_IMAGE_ALIGNMENT_SUPPORTED |
method get_image_alignment_supported |
Specifies whether or not a graphic can be aligned (left, right, or centered) |
"X" or |
WML |
|
| GET_IMAGE_LINKS_SUPPORTED |
method get_image_links_supported |
Specifies whether or not a graphic can be used as link. |
"X" or |
2 |
|
|
GET_IMAGE_SIZE_MAX |
method get_image_size_max |
Returns the maximum memory size of a graphic |
WML |
||
|
GET_INPUT_FORMAT_DATE |
method get_input_format_date |
Returns the character string used to format date values |
WML |
||
|
GET_INPUT_FORMAT_NUMERIC |
method get_input_format_numeric |
Returns the character string used to format numeric values |
WML |
||
|
GET_INPUT_METHOD_HAND_WRITING |
method get_input_method_hand_writing |
Specifies whether or not the device supports handwritten input |
"X" or |
||
|
GET_INPUT_METHOD_KEYBOARD |
method get_input_method_keyboard |
Specifies whether or not the device supports input using a keyboard |
"X" or |
||
|
GET_INPUT_METHOD_KEYPAD |
method get_input_method_keypad |
Specifies whether or not the device supports input using a telephone keypad |
"X" or |
||
|
GET_INPUT_METHOD_KEYPAD_INTELL |
method get_input_method_keypad_intell |
Specifies whether or not the device supports input using T9 text input or similar |
"X" or |
||
|
GET_INPUT_METHOD_VOICE |
method get_input_method_voice |
Specifies whether or not the device supports speech input |
"X" or |
||
| GET_INPUT_SHOWN_WITH_CAPTION |
method get_input_shown_with_caption |
Specifies whether or not the browser uses the title attribute of the <input> tag is used as a label |
"X" or |
WML |
3 |
|
GET_ITALIC_SUPPORTED |
method get_italic_supported |
Specifies whether or not text can be formatted as "ítalic" |
"X" or |
WML |
5 |
|
GET_JAVA_SUPPORTED |
method get_java_supported |
Specifies whether or not the device supports the Java programming language |
"X" or |
HTML |
1 |
|
GET_JAVA_VERSION |
method get_java_version |
Returns the Java version supported |
HTML |
||
| GET_LINKS_SEPARATED |
method get_links_separated |
Specifies whether or not two consecutive links are visibly separated |
"X" or |
WML |
4 |
| GET_LINK_DECORATION |
method get_link_decoration |
Returns the delimiters that are automatically added to the link text by the device – for example [ ] or < >. |
WML |
||
| GET_LINK_TEXT_WIDTH |
method get_link_text_width |
Returns the maximum number of characters that a link can have to fit into one line. |
WML |
3 |
|
|
GET_LOCAL_IMAGES_SUPPORTED |
method get_local_images_supported |
Specifies whether or not the device supports locally stored graphics or symbols |
"X" or |
3 |
|
|
GET_LOCAL_VARIABLES_SUPPORTED |
method get_local_variables_supported |
Specifies whether or not the browser supports local variables |
"X" or |
WML |
1 |
| GET_MARQUEE_LINK_SUPPORTED |
method get_marquee_link_supported |
Specifies whether or not a long link can be displayed in one line, for example as a ticker-tape. |
"X" or |
WML |
3 |
| GET_MARQUEE_TEXT_SUPPORTED |
method get_marquee_text_supported |
Specifies whether or not a long text can be displayed in one line, for example as a ticker-tape. |
"X" or |
WML |
3 |
| GET_MAX_LINK_LENGTH |
method get_max_link_length |
Returns the maximum size of the Href attributes of a link. |
1 |
||
| GET_MEDIA_FORMATS |
method get_media_formats |
Returns the list of multimedia formats supported – such as .agif (animated .gif format), .gif, .jpg, .png, .wbmp |
3 |
||
|
GET_MEMORY |
method get_memory |
Returns the maximum memory capacity of the device |
HTML |
||
|
GET_MODEL |
method get_model |
Returns the name of the device type – such as 7110 for the Nokia 7110 mobile telephone |
|||
| GET_NBSP_SUPPORTED |
method get_nbsp_supported |
Specifies whether or not the device supports non-breaking blank characters |
"X" or |
WML |
4 |
| GET_NESTED_TABLES_SUPPORTED |
method get_nested_tables_supported |
Specifies whether or not the browser supports nested tables |
"X" or |
HTML |
2 |
| GET_NEWLINE_AFTER_IMAGE |
method get_newline_after_image |
Specifies whether or not a line break is inserted automatically after an <img> tag. |
"X" or |
WML |
4 |
| GET_NEWLINE_AFTER_INPUT |
method get_newline_after_input |
Specifies whether or not a line break is inserted automatically after an <input> tag on a specific mobile device. |
"X" or |
WML |
4 |
|
GET_NEWLINE_AFTER_LINK |
method get_newline_after_link |
Specifies whether or not a line break is inserted automatically after a link |
"X" or |
WML |
4 |
|
GET_NEWLINE_AFTER_SELECT |
method get_newline_after_select |
Specifies whether or not a line break is inserted automatically after an <select> tag. |
"X" or |
WML |
4 |
| GET_NEWLINE_BEFORE_IMAGE |
method get_newline_before_image |
Specifies whether or not a line break is inserted automatically before an <img> tag. |
"X" or |
WML |
4 |
| GET_NEWLINE_BEFORE_INPUT |
method get_newline_before_input |
Specifies whether or not a line break is inserted automatically before an <input> tag. |
"X" or |
WML |
4 |
| GET_NEWLINE_BEFORE_LINK |
method get_newline_before_link |
Specifies whether or not a line break is inserted automatically before a link |
"X" or |
WML |
4 |
|
GET_NEWLINE_BEFORE_SELECT |
method get_newline_before_select |
Specifies whether or not a line break is inserted automatically before an <select> tag. |
"X" or |
WML |
4 |
| GET_NEWLINE_BETWEEN_IMAGES |
method get_newline_between_images |
Specifies whether or not a line break is inserted automatically after an <image> tag |
"X" or |
WML |
3 |
| GET_NEWLINE_BETWEEN_LINKS |
method get_newline_between_links |
Specifies whether or not a line break is inserted automatically between two <image> tags |
"X" or |
WML |
4 |
| GET_NEWLINE_BETW_LINK_AND_TAG |
method get_newline_betw_link_and_tag |
Specifies whether or not a line break is inserted automatically between a link and a tag |
"X" or |
WML |
4 |
|
GET_OFFLINE_BROWSING_SUPPORTED |
method get_offline_browsing_supported |
Specifies whether or not the browser supports offline browsing through locally stored pages (that is, cached pages) |
"X" or |
HTML |
2 |
|
GET_OFFLINE_FORMS_SUPPORTED |
method get_offline_forms_supported |
Specifies whether or not the browser allows the user to fill out input forms offline on the device |
"X" or |
HTML |
2 |
| GET_PAGE_SIZE_MAX |
method get_page_size_max |
Returns the maximum page size that can be processed in a mobile device. |
2 |
||
| GET_PIXEL_HEIGHT |
method get_pixel_height |
Specifies the screen height in pixels. |
|||
| GET_PIXEL_WIDTH |
method get_pixel_width |
Specifies the screen width in pixels. |
|||
|
GET_REDIR_ABSOLUTE_SUPPORTED |
method get_redir_absolute_supported |
Specifies whether or not the browser supports the redirection of an absolute URL address. |
"X" or |
1 |
|
| GET_REDIR_RELATIVE_SUPPORTED |
method get_redir_relative_supported |
Specifies whether or not the browser supports the redirection of a relative URL address. |
"X" or |
2 |
|
| GET_SCRIPT_SUPPORTED |
method get_script_supported |
Specifies whether or not the browser supports scripting |
"X" or |
2 |
|
|
GET_SCRIPT_VERSION |
method get_script_version |
Returns the script version supported |
|||
|
GET_SECURE_PROTOCOLS_SUPPORTED |
method get_secure_protocols_supported |
Specifies whether or not the browser supports SSL (Secure Socket Layer) or WTLS (Wireless Transport Layer Security) |
"X" or |
||
|
GET_SECURE_PROTOCOLS_NAMES |
method get_secure_protocols_names |
Returns the names of the security protocols supported The names are separated by semicolons |
|||
| GET_SELECTION_MENU_SUPPORTED |
method get_selection_menu_supported |
Specifies whether or not the menu layout type "selectionList" is supported |
"X" or |
WML |
4 |
|
GET_SETVAR_ON_EVENT_SUPPORTED |
method get_setvar_on_event_supported |
Specifies whether or not the <setvar> tag can be used within the <onevent type="onenterforward"> event handler |
"X" or |
WML |
1 |
| GET_SKIPPING_TO_INPUT |
method get_skipping_to_input |
Specifies whether or not the browser automatically skips to the first <input> tag and displays a screen extract starting from this tag |
"X" or |
WML |
4 |
|
GET_SMALL_SUPPORTED |
method get_small_supported |
Specifies whether or not text can be formatted as "small" |
"X" or |
WML |
5 |
| GET_SOFTKEY_NUM |
method get_softkey_num |
Returns the number of Soft Keys supported by the device |
WML |
3 |
|
| GET_SOFTKEY_STYLE1 |
method get_softkey_style1 |
Specifies how soft key 1 is displayed on the screen |
„notShown" |
WML |
5 |
| GET_SOFTKEY_STYLE2 |
method get_softkey_style2 |
Specifies how soft key 2 is displayed on the screen |
„notShown" |
WML |
5 |
| GET_SOFTKEY_TITLE_WIDTH |
method get_softkey_title_width |
Returns the number of displayed characters for a soft key title. |
WML |
3 |
|
|
GET_SOUND_SUPPORTED |
method get_sound_supported |
Specifies whether or not the device can play sounds |
"X" or |
HTML |
|
|
GET_STRONG_SUPPORTED |
method get_strong_supported |
Specifies whether or not text with the <strong>can be formatted as "highlighted" |
"X" or |
WML |
5 |
|
GET_SUBMIT_ONEVENT_SUPPORTED |
method get_submit_onevent_supported |
Specifies whether or not "Submit" is supported within the <onevent type="onenterforward"> event handler |
"X" or |
1 |
|
| GET_SUB_CATEGORY |
method get_sub_category |
Allows you to split devices into different sub-categories |
Any text |
||
| GET_TABLE_HAS_BORDERS |
method get_table_has_borders |
Specifies whether or not tables are displayed with gridlines |
"X" or |
4 |
|
| GET_TABLE_SUPPORTED |
method get_table_supported |
Specifies whether or not the browser supports tables with several columns |
"X" or |
3 |
|
| GET_TELEPHONY_LINKS_SUPPORTED |
method get_telephony_links_supported |
Specifies whether or not a telephone can be dialed directly using a link |
"X" or |
4 |
|
|
GET_TEXT_ALIGNMENT_SUPPORTED |
method get_text_alignment_supported |
Specifies whether or not text within a paragraph can be aligned left, right, or centered |
"X" or |
WML |
5 |
| GET_TEXT_STYLES_SUPPORTED |
method get_text_styles_supported |
Specifies whether or not the browser can format text using tags such as <b> or <small> |
"X" or |
WML |
5 |
| GET_TITLE_SUPPORTED |
method get_title_supported |
Specifies whether or not a label is to appear on the top of the screen using the "title" property of the <card> WML tag. |
"X" or |
WML |
3 |
| GET_TITLE_WIDTH |
method get_title_width |
Returns the maximum number of characters of the title |
3 |
||
|
GET_UNDERLINE_SUPPORTED |
method get_underline_supported |
Specifies whether or not text can be formatted as "underlined" |
"X" or |
WML |
5 |
| GET_USER_AGENT |
method get_user_agent |
Equivalent to the HTTP request header "userAgent" |
|||
|
GET_VARS_ACROSS_CARD_SUPPORTED |
method get_vars_across_card_supported |
Specifies whether or not browser variables passed to a card can also be used for different cards |
"X" or |
WML |
1 |
|
GET_VENDOR |
method get_vendor |
Returns the manufacturer’s name |
|||
|
GET_XSL_SUPPORTED |
method get_xsl_supported |
Specifies whether or not the browser supports Extensible Stylesheet Language (XSL) |
"X" or |
HTML |
|
|
GET_XSL_VERSION |
method get_xsl_version |
Returns the XSL version supported |
HTML |