Typealiases

The following typealiases are available globally.

  • This class is the API for flags that are controlled by ROX server, Flags are assigned to an experiment and their value is based on experiment container.

    See also

    ROXFlag
    open class ROXFlag : ROXVariant {
    
       open var isEnabled: Bool { get }
       open func enabled(_ codeBlock: (() -> Swift.Void)!)
       open func disabled(_ codeBlock: (() -> Swift.Void)!)
       open func enabled(_ enabledCodeBlock: (() -> Swift.Void)!, disabled disabledCodeBlock: (() -> Swift.Void)!)
       open var name: String! { get }
    
    }
    
    

    Declaration

    Swift

    public typealias RoxFlag = ROXFlag
  • This class is the API for a remote configuration String that is controlled by ROX server, on init you assing a default value to that string that can be changed by the configuration tab in ROX dashboard

    open class ROXConfigurationString {
    
       open var value: String { get }
       public init(defaultValue: String)
    
    }
    

    Declaration

    Swift

    public typealias RoxConfigurationString = ROXConfigurationString
  • This class is the API for a remote configuration Int that is controlled by ROX server, on init you assing a default value to that string that can be changed by the configuration tab in ROX dashboard

    open class ROXConfigurationInt {
    
    open var value: Int { get }
    public init(defaultValue: Int)
    
    }
    

    Declaration

    Swift

    public typealias RoxConfigurationInt = ROXConfigurationInt
  • This class is the API for a remote configuration Double that is controlled by ROX server, on init you assing a default value to that string that can be changed by the configuration tab in ROX dashboard

    open class ROXConfigurationDouble {
    
    open var value: Double { get }
    public init(defaultValue: Double)
    
    }
    

    Declaration

    Swift

    public typealias RoxConfigurationDouble = ROXConfigurationDouble
  • This class is the API for a remote configuration Bool that is controlled by ROX server, on init you assing a default value to that string that can be changed by the configuration tab in ROX dashboard

    open class ROXConfigurationBool {
    
    open var value: Bool { get }
    public init(defaultValue: Bool)
    
    }
    

    Declaration

    Swift

    public typealias RoxConfigurationBool = ROXConfigurationBool