ULinkConfig class
Configuration for the ULink SDK
Constructors
-
ULinkConfig({required String apiKey, String baseUrl = 'https://api.ulink.ly', bool debug = false, bool persistLastLinkData = false, Duration? lastLinkTimeToLive, bool clearLastLinkOnRead = true, bool redactAllParametersInLastLink = false, List<
String> redactedParameterKeysInLastLink = const [], bool enableDeepLinkIntegration = true, bool enableAutomaticAppDelegateIntegration = true, bool enableAnalytics = true, bool enableCrashReporting = false, int timeout = 30000, int retryCount = 3, Map<String, dynamic> ? metadata, bool autoCheckDeferredLink = true}) - Creates a new ULink configuration
-
ULinkConfig.fromJson(Map<
String, dynamic> json) -
Creates a configuration from JSON
factory
Properties
- apiKey → String
-
The API key for the ULink service
final
- autoCheckDeferredLink → bool
-
Whether to automatically check for deferred deep links on first app launch
If false, developers must manually call checkDeferredLink() when ready
final
- baseUrl → String
-
The base URL for the ULink API.
You do not need to set this. It defaults to the production API and is only
used internally for local development and testing.
final
- clearLastLinkOnRead → bool
-
final
- debug → bool
-
Whether to use debug mode
final
- enableAnalytics → bool
-
Whether to enable analytics
final
- enableAutomaticAppDelegateIntegration → bool
-
Whether to enable automatic AppDelegate integration (iOS only)
When enabled, the plugin will automatically handle universal links and URL schemes
without requiring manual AppDelegate modifications
final
- enableCrashReporting → bool
-
Whether to enable crash reporting
final
- enableDeepLinkIntegration → bool
-
Whether to enable deep link integration on init
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastLinkTimeToLive → Duration?
-
final
-
metadata
→ Map<
String, dynamic> ? -
Additional metadata
final
- persistLastLinkData → bool
-
Persistence controls for last link data
final
- redactAllParametersInLastLink → bool
-
final
-
redactedParameterKeysInLastLink
→ List<
String> -
final
- retryCount → int
-
Number of retry attempts
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → int
-
Request timeout in milliseconds
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the configuration to JSON (backward compatibility)
-
toMap(
) → Map< String, dynamic> - Converts the configuration to a map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited