Interface FirebaseAnalyticsProvider.Bridge
- Enclosing class:
FirebaseAnalyticsProvider
public static interface FirebaseAnalyticsProvider.Bridge
The platform's connection to the native Firebase SDK. The Codename One
build implements this for Android (direct SDK calls) and iOS (native
methods) and hands it to
FirebaseAnalyticsProvider.registerBridge(Bridge). Application
code never implements this directly.-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the native Firebase SDK is present and initialised.voidLogs a named event with a JSON object of parameters.voidLogs a screen view.voidSets the Firebase user id.voidsetUserProperty(String key, String value) Sets a Firebase user property.
-
Method Details
-
isSupported
boolean isSupported()Whether the native Firebase SDK is present and initialised.
Returns
true when events can be delivered
-
logEvent
-
logScreen
Logs a screen view.
Parameters
screenName: the screen name
-
setUserId
Sets the Firebase user id.
Parameters
id: the user id, or null to clear
-
setUserProperty
-