Open this page in the API Guide

StateIndicator.onDataChanged Method

Called when data changes.