addListener abstract method

void addListener(
  1. SpeedPolicyListener speedLimitsListener
)

The class does not retain the object in the 'speedLimitsListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.

Implementation

void addListener(SpeedPolicyListener speedLimitsListener);