Accessing the "refresh" Contract

As a prerequisite, you have to consume the refresh contract in the CHIP definition XML.

The refresh property is then available in the CHIP API object. It provides the method chip.refresh.attachRefresh() to learn when a refresh is requested.

Example: Code Example

var oChipApi = this.getView().getViewData().chip;
oChipApi.refresh.attachRefresh(function (){
  // do refresh now
});