https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics,

https://firebase.google.com/docs/reference/swift/firebaseanalytics/api/reference/Classes/Analytics

The method is available on both iOs and Android