• Returns the current activity state and re-renders the component if it changes.

    Returns ActivityState