RudderConfigBuilder class
Builder class for creating RudderConfig instances.
RudderConfigBuilder provides a fluent interface for constructing RudderConfig objects with various configuration options. Use this builder to set up SDK configuration before initialization.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → RudderConfig - Builds and returns the final RudderConfig instance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withControlPlaneUrl(
String controlPlaneUrl) → RudderConfigBuilder - Sets the control plane URL for source configuration.
-
withDataPlaneUrl(
String dataPlaneUrl) → RudderConfigBuilder - Sets the data plane URL for sending events.
-
withDataResidencyServer(
DataResidencyServer dataResidencyServer) → RudderConfigBuilder -
withDebug(
bool isDebug) → RudderConfigBuilder - @param isDebug Set it true to initialize SDK in debug mode @return RudderConfigBuilder @deprecated Use withLogLevel(int logLevel) instead
-
withFactories(
List< RudderIntegration> factories) → RudderConfigBuilder - @param list of factory objects of the device mode integrations @return RudderConfigBuilder
-
withFactory(
RudderIntegration factory) → RudderConfigBuilder - @param factory Object of the device mode integration class @return RudderConfigBuilder
-
withFlushQueueSize(
int flushQueueSize) → RudderConfigBuilder - Sets the flush queue size for batching events.
-
withLogLevel(
int logLevel) → RudderConfigBuilder - Sets the logging level for the SDK.
-
withMobileConfig(
MobileConfig mobileConfig) → RudderConfigBuilder - Sets the mobile-specific configuration.
-
withWebConfig(
WebConfig webConfig) → RudderConfigBuilder - Sets the web-specific configuration.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited