Control registration of a background task to receive Visit state change events.

Visit Events