Conditional Feature Flags
How to use condition strings in code to enable or disable features
checkNamedCondition API
// Optionally try/catch the for errors
let result = try? await CriticalMoments.shared().checkNamedCondition("userNotDistracted")
if result {
// Perform action
}[CriticalMoments.sharedInstance
checkNamedCondition:@"userNotDistracted"
handler:^(_Bool result, NSError * _Nullable error) {
if (error != nil) {
NSLog(@"Error: %@", error);
} else if (result) {
// Perform action
}
}];Parameters and Return Value
Return Value
Remote updates
Advanced Usage
Last updated