onReceive abstract method

void onReceive(
  1. LocalityEvent localityEvent
)

React to events being thrown. Use switch case on the localityEvent.event

Implementation

void onReceive(LocalityEvent localityEvent);