Events
  • 30 Aug 2021
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Events

  • Dark
    Light
  • PDF

Article summary

Below is a categorized reference of events supported by the app runtime.

Events - User Experience

These events are triggered for apps supporting a user interactive experience.

EventDescription
Ux.GlobalGlobal script accessible to all other scripts
Ux.InitializeRuns once when your app first starts
Ux.ShutdownRuns when your app is closing
Ux.PageReadyRuns when a page has finished loading
Ux.ChangeRuns when the user changes something in your app's visual layout
Ux.ValidateRuns when the host validates the user's input to your visual layout
Ux.RenderRuns when the host renders language output
Ux.ResourceReadyRuns after a requested Internet resource has been downloaded into cache (i.e. file, raw data, image, ML model results, etc)
Ux.IoTRuns once after your app has been initialized - used for loading IoT measurements
Ux.TestRuns when clicking the 'Test' button inside the app simulator - used for testing scripts before subscribing to real, production events

Events - Avatars

These events are triggered for apps targeting the avatar service and do not support a user interactive experience.

EventDescription
Avatar.RunRuns when an avatar awakes (according to its schedule)
Avatar.InstallRuns once, when installed into an avatar
Avatar.UninstallRuns once, when uninstalled from an avatar

What's Next