MPLogger

object MPLogger

How a wrapper SDK says which component its events come from.

The Flutter and React Native plugins embed this SDK, so events they cause would otherwise be reported as coming from the Android SDK itself and the two would be indistinguishable in Insights. They call this during start-up to say what they really are — "Flutter/android SDK" and its version — and the rollups and the CMS group on those exact strings.

Not for app developers. This exists so the wrappers can identify themselves; an app calling it only makes its own analytics wrong. It is public solely because the wrappers are separate artifacts and there is no narrower visibility that reaches them.

Functions

Link copied to clipboard
fun setCustomComponent(component: String?, componentVersion: String?)

Sets the component name and version stamped into every session this process starts.