You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnawaitwithCheckedContinuation{ continuation in
157
+
decideAsync(key: key, options: options){ decision in
158
+
continuation.resume(returning: decision)
159
+
}
160
+
}
161
+
}
162
+
124
163
/// Returns a key-map of decision results for multiple flag keys and a user context.
125
164
///
126
165
/// - If the SDK finds an error (__flagKeyInvalid__, etc) for a key, the response will include a decision for the key showing `reasons` for the error (regardless of __includeReasons__ in options).
@@ -141,6 +180,43 @@ public class OptimizelyUserContext {
/// Asynchronously makes a decision for all features and experiments for this user.
235
+
///
236
+
/// - Parameters:
237
+
/// - options: An array of decision options. If not provided, the default options will be used.
238
+
/// - completion: A closure that will be called with the decision results for all keys.
239
+
/// The closure takes a dictionary of feature/experiment keys to their corresponding decision results.
240
+
///
241
+
/// - Note: The completion handler will be called on a background queue. If you need to update the UI, dispatch to the main queue within the completion handler.
case.userNotBucketedIntoAnyExperimentInGroup(let userId,let group): message ="User (\(userId)) is not in any experiment of group (\(group))."
130
131
case.userBucketedIntoInvalidExperiment(let id): message ="Bucketed into an invalid experiment id (\(id))"
131
132
case.userNotInExperiment(let userId,let expKey): message ="User (\(userId)) does not meet conditions to be in experiment (\(expKey))."
133
+
case.userNotInCmabExperiment(let userId,let expKey): message ="User (\(userId)) does not fall into cmab taffic allocation in experiment (\(expKey))."
132
134
case.userReceivedDefaultVariableValue(let userId,let feature,let variable): message ="User (\(userId)) is not in any variation or rollout rule. Returning default value for variable (\(variable)) of feature flag (\(feature))."
133
135
case.userReceivedAllDefaultVariableValues(let userId,let feature): message ="User (\(userId)) is not in any variation or rollout rule. Returning default value for all variables of feature flag (\(feature))."
134
136
case.featureNotEnabledReturnDefaultVariableValue(let userId,let feature,let variable): message ="Feature (\(feature)) is not enabled for user (\(userId)). Returning the default variable value (\(variable))."
0 commit comments