ROXOptions

@interface ROXOptions : NSObject

This is the configuration class that is used when running +[ROXCore setupWithKey:options:].

  • The completion handler that is called when the SDK has synced and applied the configuration

     ROXOptions *options = [[ROXOptions alloc] init];
     options.syncCompletionHandler = ^(ROXMetadata * _Nonnull metadata) {
        for (ROXTargetGroup *t in metadata.targetGroups){
            NSLog(@"%@:%@", t.name, t.isEnabled ? @"in" : @"out");
        }
        for (ROXFlag* f in metadata.flags) {
            NSLog(@"%@:%@", f.name, f.isEnabled ? @"in" : @"out");
        }
        for (ROXExperiment* e in metadata.experiments){
            NSLog(@"%@:%@", e.name, e.isEnabled ? @"enabled" : @"disbaled");
        }
     };
     [ROXCore setupWithKey:APP_KEY options:options];
    

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        ROXSyncCompletionHandler syncCompletionHandler;

    Swift

    var syncCompletionHandler: ROXSyncCompletionHandler? { get set }
  • Set SDK verbosity level for debugging

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) ROXOptionsVerboseLevel verbose;

    Swift

    var verbose: ROXOptionsVerboseLevel { get set }
  • Setting this options to YES will prevent the SDK from handling and reporting crashed sessions.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL disableCrashReporting;

    Swift

    var disableCrashReporting: Bool { get set }