Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Document
  • Project information
    • Project information
    • Activity
    • Members
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • SRP_MobileAPP_FrameworkSRP_MobileAPP_Framework
  • Document
  • Wiki
  • Manual
  • jsInterfaceSetting

jsInterfaceSetting · Changes

Page history
modify page authored Feb 21, 2019 by Yuying.Lo's avatar Yuying.Lo
Hide whitespace changes
Inline Side-by-side
manual/jsInterfaceSetting.md
View page @ fd3ed13c
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
> 此文件說明如何在網頁傳遞訊息到 APP 以及在網頁如何接收來自 APP 的訊息 > 此文件說明如何在網頁傳遞訊息到 APP 以及在網頁如何接收來自 APP 的訊息
### From Javascript to iOS/Android ### From Javascript to iOS/Android
在網頁加入下方 Javascript 來傳遞訊息給 iOS/Android native app 在網頁加入下方 Javascript 來傳遞訊息給 iOS/Android native app<br><br>
以 Dashboard 頁面中提供的 [changeDashboard](./tab/dashboard/api/changeDashboard) API 為範例
`傳遞內容為 JSON 格式的字串`
(以 Dashboard 頁面中提供的 changeDashboard API 為範例)
(function (global) { (function (global) {
if (global.callNativeInterface) { if (global.callNativeInterface) {
...@@ -53,7 +54,8 @@ ...@@ -53,7 +54,8 @@
在網頁加入下方 Javascript 來接收 iOS/Android native app 傳送的訊息 在網頁加入下方 Javascript 來接收 iOS/Android native app 傳送的訊息
(以 Dashboard 頁面中提供的 openDialog API 為範例) 以 Dashboard 頁面中提供的 [openDialog](./tab/dashboard/api/openDialog) API 為範例
`傳遞內容為 JSON 格式的字串`
(function (global) { (function (global) {
if (global.jsAppInterface) { if (global.jsAppInterface) {
......
Clone repository
  • SDS
    • SDS
    • tab
      • dashboard
        • api
          • changeDashboard
          • changeDashboardControllerStatus
          • closeDialog
          • getDashboardDomain
          • getDashboardMenu
          • openDialog
        • dashboard
  • Home
  • manual
    • Home
    • image
      • icon
        • ios
          • appIconIos
      • launch
        • ios
          • appLaunchIos
    • jsInterfaceSetting
    • sample
    • sampleAPM
View All Pages