Skip to content

loadingView

Wesley De Groot edited this page Nov 24, 2015 · 7 revisions

tvOS.showLoadingIndicator(...)

tvOS.removeLoadingIndicator()


### Example (gif)

listView

Example code:

evaluateScripts(['https://wdg.github.io/tvOS.js/tvOS.js'], function (success) {
  if (success) {
    //
    // Show loading indicator with custom text ('Booting')...
    tvOS.showLoadingIndicator('Booting')
    //
    // Timer!
    setTimeout(function () {
      // Remove Loading indicator...
      tvOS.removeLoadingIndicator()
    }, 3000)
  } else {
    console.log('Missing it all!')
  }
})

Discussion

Go to: issues/3