Firebase Dispatcher
-
Declaration
Swift
public extension Modules -
Builder for Firebase Dispatcher configuration settings.
Use this builder to configure Firebase Analytics behavior. For data mappings, use
setMappings(_:)withFirebaseMappingstype-safe enums.Available Configuration Options
setSessionTimeout(_:)- Session timeout durationsetAnalyticsEnabled(_:)- Enable/disable analytics collectionsetLogLevel(_:)- Firebase internal logging verbosity
Example
See moreModules.firebaseDispatcher(forcingSettings: { builder in builder .setSessionTimeout(30.minutes) .setAnalyticsEnabled(true) .setMappings { mappings in mappings.mapCommand(.logEvent) mappings.mapFrom("tealium_event", to: .eventName) } })Declaration
Swift
public class FirebaseSettingsBuilder : DispatcherSettingsBuilder<FirebaseMappings>
-
Concrete Firebase mappings builder combining
FirebaseCommandandFirebaseDestination.Used with
FirebaseSettingsBuilder.setMappings(_:)to configure Firebase-specific data mappings with type-safe enums.
See moreModules.firebaseDispatcher(forcingSettings: { builder in builder.setMappings { mappings in mappings.mapCommand(.logEvent) mappings.mapFrom("tealium_event", to: .eventName) mappings.mapFrom("total", to: .eventParam(AnalyticsParameterValue)) mappings.mapFrom("product_ids", to: .itemParam(AnalyticsParameterItemID)) } })Declaration
Swift
public class FirebaseMappings : CommandMappingsBuilder<FirebaseCommand, FirebaseDestination>
-
Type-safe Firebase Analytics commands for use with
See moreFirebaseMappings.mapCommand(_:).Declaration
Swift
public enum FirebaseCommand : String, CommandName
-
Type-safe Firebase Analytics mapping destinations.
Each case maps to a specific key or path in the Firebase command payload. Use with
See moremapFrom(_:to:),mapConstant(_:to:), andkeep(_:).Declaration
Swift
public enum FirebaseDestination : JSONObjectPathConvertible
View on GitHub
Firebase Dispatcher Reference