Skip to content

Classic API: Remote UI

Gyeonghwan Hong edited this page Dec 21, 2020 · 5 revisions

Parent Document: ANT APIs

Remote UI API is the set of APIs for displaying the output of IoT applications onto companion device's screen.

As now, ANT supports Android-based smartphones as the companion devices of the ANT framework.

You need to load remote UI API module before you use its API as following.

var remoteUiApi = require(process.env.ANT_BIN_DIR + 'ant').remoteUI();

Notification Page

makeNotiPage()

  • NotificationPage remoteUiApi.makeNotiPage(String title)

NotificationPage()

  • Constructor
    • NotificationPage(String title)
  • Properties
    • String title
    • Object descriptor
      • String appTitle
      • String descriptor

NotificationPage.addText()

  • NotificationPage.addText(String text)

NotificationPage.addImg()

  • NotificationPage.addImg(String imgPath)

NotificationPage.sendToCompanion()

  • NotificationPage.sendToCompanion()

Config Page

makeConfigPage()

  • ConfigPage remoteUiApi.makeConfigPage(String title)

ConfigPage()

  • Constructor
    • ConfigPage(String title)