# 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 Type
  Method
  Description
  `boolean`
  `isSupported()`
  Whether the native Firebase SDK is present and initialised.
  `void`
  `logEvent(String name, String paramsJson)`
  Logs a named event with a JSON object of parameters.
  `void`
  `logScreen(String screenName)`
  Logs a screen view.
  `void`
  `setUserId(String id)`
  Sets the Firebase user id.
  `void`
  `setUserProperty(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

    void logEvent(String name, String paramsJson)

    Logs a named event with a JSON object of parameters.

    ###### Parameters

    - `name`: the event name

    - `paramsJson`: a JSON object of parameters, may be empty

  - ### logScreen

    void logScreen(String screenName)

    Logs a screen view.

    ###### Parameters

    - `screenName`: the screen name

  - ### setUserId

    void setUserId(String id)

    Sets the Firebase user id.

    ###### Parameters

    - `id`: the user id, or null to clear

  - ### setUserProperty

    void setUserProperty(String key, String value)

    Sets a Firebase user property.

    ###### Parameters

    - `key`: the property name

    - `value`: the property value