onRoadAttributesUpdated abstract method

void onRoadAttributesUpdated(
  1. RoadAttributes roadAttributes
)

Called whenever any attribute of the current road changes.

It's guaranteed to be called at least once for the first road the user is traveling on.

  • roadAttributes The object that contains attributes of the current road.

Implementation

void onRoadAttributesUpdated(RoadAttributes roadAttributes);