screenViewed method

bool screenViewed(
  1. MBAutomationView view
)

Function called when the user views a view @param view The view viewed. @returns If theis trigger has changed or not.

Implementation

bool screenViewed(MBAutomationView view) {
  if (view.view == this.view) {
    numberOfTimes = (numberOfTimes ?? 0) + 1;
    return true;
  }
  return false;
}