Skip to content

Commit 71d22a4

Browse files
authored
update geo and device
1 parent 4ef42e6 commit 71d22a4

File tree

2 files changed

+2
-58
lines changed

2 files changed

+2
-58
lines changed

docs/.vitepress/config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ export default defineConfig({
111111
{ text: 'File Handling', link: '/development/specific/files', },
112112
{ text: 'XLSX', link: '/development/specific/xlsx', },
113113
{ text: 'Logging', link: '/development/specific/logging' },
114-
// { text: 'Camera', link: '/development/specific/ndc' },
114+
{ text: 'Camera', link: '/development/specific/camera' },
115115
{ text: 'CDS, EML', link: '/development/specific/cds' },
116116
// { text: 'Fuzzy Search', link: '/development/specific/fuzzy' },
117117
{ text: 'Drag & Drop', link: '/development/specific/drag' },
118118
{ text: 'Smart Controls', link: '/development/specific/smart_controls' },
119-
// { text: 'Geolocation, Maps', link: '/development/specific/geolocation' },
119+
{ text: 'Geolocation, Maps', link: '/development/specific/geolocation' },
120120
// { text: 'Side Effects', link: '/development/specific/side_effects' },
121121
]
122122
},

docs/development/specific/geolocation.md

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -45,59 +45,3 @@ CLASS z2ui5_cl_sample_geolocation IMPLEMENTATION.
4545
ENDMETHOD.
4646
ENDCLASS.
4747
```
48-
49-
#### Device Information
50-
This example demonstrates how to retrieve detailed device information such as UI5 version, device type, OS, browser, and screen dimensions. Also see `z2ui5_cl_demo_app_122`.
51-
```abap
52-
CLASS z2ui5_cl_sample_device DEFINITION PUBLIC CREATE PUBLIC.
53-
54-
PUBLIC SECTION.
55-
INTERFACES z2ui5_if_app.
56-
57-
DATA ui5_version TYPE string.
58-
DATA ui5_theme TYPE string.
59-
DATA ui5_gav TYPE string.
60-
DATA device_systemtype TYPE string.
61-
DATA device_os TYPE string.
62-
DATA device_browser TYPE string.
63-
DATA check_initialized TYPE abap_bool.
64-
DATA device_phone TYPE abap_bool.
65-
DATA device_desktop TYPE abap_bool.
66-
DATA device_tablet TYPE abap_bool.
67-
DATA device_combi TYPE abap_bool.
68-
DATA device_height TYPE string.
69-
DATA device_width TYPE string.
70-
71-
ENDCLASS.
72-
73-
CLASS z2ui5_cl_sample_device IMPLEMENTATION.
74-
75-
METHOD z2ui5_if_app~main.
76-
77-
DATA(lo_view) = z2ui5_cl_xml_view=>factory(
78-
)->page( )->_z2ui5(
79-
)->info_frontend(
80-
finished = client->_event( `POST` )
81-
device_browser = client->_bind_edit( device_browser )
82-
device_os = client->_bind_edit( device_os )
83-
device_systemtype = client->_bind_edit( device_systemtype )
84-
ui5_gav = client->_bind_edit( ui5_gav )
85-
ui5_theme = client->_bind_edit( ui5_theme )
86-
ui5_version = client->_bind_edit( ui5_version )
87-
device_phone = client->_bind_edit( device_phone )
88-
device_desktop = client->_bind_edit( device_desktop )
89-
device_tablet = client->_bind_edit( device_tablet )
90-
device_combi = client->_bind_edit( device_combi )
91-
device_height = client->_bind_edit( device_height )
92-
device_width = client->_bind_edit( device_width ) ).
93-
94-
client->view_display( lo_view->stringify( ) ).
95-
96-
IF client->get( )-event = 'POST'.
97-
client->nav_app_leave( client->get_app( client->get( )-s_draft-id_prev_app_stack ) ).
98-
ENDIF.
99-
100-
ENDMETHOD.
101-
102-
ENDCLASS.
103-
```

0 commit comments

Comments
 (0)