Skip to content

Commit c2d859d

Browse files
Improve documentation for setCustomSignals.
1 parent ec58080 commit c2d859d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

FirebaseRemoteConfig/Swift/CustomSignals.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ public extension RemoteConfig {
8888
/// Sets custom signals for this Remote Config instance.
8989
/// - Parameter customSignals: A dictionary mapping string keys to custom
9090
/// signals to be set for the app instance.
91+
///
92+
/// When a new key is provided, a new key-value pair is added to the custom signals.
93+
/// If an existing key is provided with a new value, the corresponding signal is updated.
94+
/// If the value for a key is `nil`, the signal associated with that key is removed.
9195
func setCustomSignals(_ customSignals: [String: CustomSignalValue?]) async throws {
9296
return try await withCheckedThrowingContinuation { continuation in
9397
let customSignals = customSignals.mapValues { $0?.toNSObject() ?? NSNull() }

0 commit comments

Comments
 (0)