Define Busy Indicators and Use Related APIs
As a story developer, you can define busy indicators and use related APIs to temporarily block viewers from doing other actions, for example, when the story is loading or when the script is running.
-
Busy indicator that displays automatically when loading is longer than the predefined delay. Once it’s prompted, the actions in the entire story are blocked.
-
Busy indicator that’s owned by a story, popup or container, such as a tab strip or panel. It’s defined by APIs and when it’s prompted, only the actions on that specific level are blocked.
Define an Automatic Busy Indicator
You can define an automatic busy indicator, which can be prompted by loading activities on story level or widget level. Whenever there’s a loading that exceeds the predefined delay time, the entire story is blocked.
Procedure
- Select Global Settings from the Outline panel.
- Under Loading Indicator Settings, select Enable loading indicator when necessary.
- Optional: Enter information text that you want to display with the loading indicator icon.
- Under Loading Indicator Delay, define the time in millisecond to be delayed before the loading indicator shows up.
Results
API to Enable an Automatic Busy Indicator
You can also use API for enabling an automatic busy indicator.
The information text and loading indicator delay time follow the settings in the Global Settings.
APIs to Enable Busy Indicators on Different Levels
You can use APIs to show or hide busy indicators on different levels so that only the actions on the specific levels are blocked when such busy indicators are prompted in view time.
-
Stories
-
Popups
-
Containers (including tab strips and panels)
The automatic busy indicator is fully independent of the busy indicators defined in this way, which means that when the automatic busy indicator is enabled, it won’t affect calls to Application.showBusyIndicator() or Application.hideBusyIndicator().