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(_:) with FirebaseMappings type-safe enums.

    Available Configuration Options

    • setSessionTimeout(_:) - Session timeout duration
    • setAnalyticsEnabled(_:) - Enable/disable analytics collection
    • setLogLevel(_:) - Firebase internal logging verbosity

    Example

    Modules.firebaseDispatcher(forcingSettings: { builder in
        builder
            .setSessionTimeout(30.minutes)
            .setAnalyticsEnabled(true)
            .setMappings { mappings in
                mappings.mapCommand(.logEvent)
                mappings.mapFrom("tealium_event", to: .eventName)
            }
    })
    
    See more

    Declaration

    Swift

    public class FirebaseSettingsBuilder : DispatcherSettingsBuilder<FirebaseMappings>

Firebase Mappings

  • Concrete Firebase mappings builder combining FirebaseCommand and FirebaseDestination.

    Used with FirebaseSettingsBuilder.setMappings(_:) to configure Firebase-specific data mappings with type-safe enums.

    Modules.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))
        }
    })
    
    See more

    Declaration

    Swift

    public class FirebaseMappings : CommandMappingsBuilder<FirebaseCommand, FirebaseDestination>

Firebase Commands

  • Type-safe Firebase Analytics commands for use with FirebaseMappings.mapCommand(_:).

    See more

    Declaration

    Swift

    public enum FirebaseCommand : String, CommandName

Firebase Destinations

  • Type-safe Firebase Analytics mapping destinations.

    Each case maps to a specific key or path in the Firebase command payload. Use with mapFrom(_:to:), mapConstant(_:to:), and keep(_:).

    See more

    Declaration

    Swift

    public enum FirebaseDestination : JSONObjectPathConvertible