title: How does 3rd party analytics libraries track screen views just by importing their library
body: <p>For example in Firebase Analytics they have automatic screen tracking: &quot;Analytics automatically tracks some information about screens in your application, such as the class name of the UIViewController or Activity that is currently in focus.&quot; <a href="https://firebase.google.com/docs/analytics/screenviews" rel="nofollow noreferrer">https://firebase.google.com/docs/analytics/screenviews</a></p>
  <p>How do they achieve this? I do not use Firebase Analytics and I was wondering how I can use the same technology for my own app.</p>