Sends client infromation available via browser API to the BIAL scriptis
Link to blog: Design Studio SDK: Client Information Component
| Name | Description | Group | Default | Visible |
|---|---|---|---|---|
| readLocation [boolean] |
Read the Location from Browser Read the Location from Browser |
Display | true |
| Name | Description | Group | Default | Visible |
|---|---|---|---|---|
| onGeoAvailable [ScriptText] |
Event for On Geo Available Event for On Geo Available |
Events | true | |
| onInformationAvailable [ScriptText] |
Event for On Information Available Event for On Information Available |
Events | true | |
| onSizeChanged [ScriptText] |
Event for On Size Changed Event for On Size Changed |
Events | true |
| Name | Parameters | Return |
|---|---|---|
| getAppCodeName [details] | String | |
| getAppName [details] | String | |
| getAppVersion [details] | String | |
| getBrowser [details] | org_scn_community_shared_BrowserEnumfield | |
| getBrowserFullVersion [details] | String | |
| getBrowserVersion [details] | String | |
| getGeoAccuracy [details] | int | |
| getGeoLatitude [details] | float | |
| getGeoLongitude [details] | float | |
| getLanguage [details] | String | |
| getOwnHeight [details] | int | |
| getOwnWidth [details] | int | |
| getPlatform [details] | String | |
| getProduct [details] | String | |
| getScreenColorsDepth [details] | int | |
| getScreenHeight [details] | int | |
| getScreenWidth [details] | int | |
| getUserAgent [details] | String | |
| getVerndor [details] | String | |
| getWindowHeight [details] | int | |
| getWindowWidth [details] | int | |
| isHtmlVisible [details] | boolean | |
| isMobileBrowser [details] | boolean | |
| reload [details] | void |
| Name | Description | Group | Default | Visible |
|---|---|---|---|---|
| geoLocation [String] |
Technical Component for Client Geo Location Technical Component for Client Geo Location |
Display | {} | false |
| htmlVisible [boolean] |
Is The Component Visible Is The Component Visible |
Display | false | false |
| information [String] |
Technical Component for Client Information Technical Component for Client Information |
Display | {} | false |
| ownHeight [int] |
Height of the Component Height of the Component |
Display | -1 | false |
| ownWidth [int] |
Width of the Component Width of the Component |
Display | false | |
| reloadRequest [String] |
Reload Request Technical Flag Reload Request Technical Flag |
Display | X | false |
| windowHeight [int] |
Height of the Window Height of the Window |
Display | -1 | false |
| windowWidth [int] |
Width of the Window Width of the Window |
Display | -1 | false |
| String getAppCodeName |
Returns the information about appCodeName |
| Source Code | return JSON.parse(this.information).appCodeName; |
| String getAppName |
Returns the information about appName |
| Source Code | return JSON.parse(this.information).appName; |
| String getAppVersion |
Returns the information about appVersion |
| Source Code | return JSON.parse(this.information).appVersion; |
| org_scn_community_shared_BrowserEnumfield getBrowser |
Returns the browser type (CHROME | SAFARI | MOZILLA | IE) |
| Source Code |
var info = JSON.parse(this.information); var browserInfo = info.browserInfo; return browserInfo.browser; |
| String getBrowserFullVersion |
Returns the full browser version |
| Source Code |
var info = JSON.parse(this.information); var browserInfo = info.browserInfo; return browserInfo.fVersion; |
| String getBrowserVersion |
Returns the browser version |
| Source Code |
var info = JSON.parse(this.information); var browserInfo = info.browserInfo; return browserInfo.version; |
| int getGeoAccuracy |
Returns the information about geo accuracy |
| Source Code |
var geo = JSON.parse(this.geoLocation); if(geo.ok) { return geo.accuracy; } else { return -999; } |
| float getGeoLatitude |
Returns the information about geo latitude |
| Source Code |
var geo = JSON.parse(this.geoLocation); if(geo.ok) { return geo.latitude; } else { return -999; } |
| float getGeoLongitude |
Returns the information about geo longitude |
| Source Code |
var geo = JSON.parse(this.geoLocation); if(geo.ok) { return geo.longitude; } else { return -999; } |
| String getLanguage |
Returns the information about language |
| Source Code | return JSON.parse(this.information).language; |
| int getOwnHeight |
Returns the height of the own size |
| Source Code | return this.ownHeight; |
| int getOwnWidth |
Returns the width of the own size |
| Source Code | return this.ownWidth; |
| String getPlatform |
Returns the information about platform |
| Source Code | return JSON.parse(this.information).platform; |
| String getProduct |
Returns the information about product |
| Source Code | return JSON.parse(this.information).product; |
| int getScreenColorsDepth |
Returns the information about Screen Colors Depth |
| Source Code | return JSON.parse(this.information).colors; |
| int getScreenHeight |
Returns the information about Screen Height |
| Source Code | return JSON.parse(this.information).height; |
| int getScreenWidth |
Returns the information about Screen Width |
| Source Code | return JSON.parse(this.information).width; |
| String getUserAgent |
Returns the information about userAgent |
| Source Code | return JSON.parse(this.information).userAgent; |
| String getVerndor |
Returns the information about verndor |
| Source Code | return JSON.parse(this.information).verndor; |
| int getWindowHeight |
Returns the height of the browser window |
| Source Code | return this.windowHeight; |
| int getWindowWidth |
Returns the width of the browser window |
| Source Code | return this.windowWidth; |
| boolean isHtmlVisible |
Returns the html visibility |
| Source Code | return this.htmlVisible; |
| boolean isMobileBrowser |
Returns true if the browser is a mobile browser |
| Source Code |
var info = JSON.parse(this.information); var browserInfo = info.browserInfo; return browserInfo.mobile; |
| void reload |
Reload Explicit Position Data |
| Source Code |
if(this.reloadRequest != "+") { this.reloadRequest = "+"; } else { this.reloadRequest = "-"; } |