Toggler
public class Toggler
                Undocumented
- 
                  
                  
Getter/Setter for this
Toggleobject’s local override. When setting this value it will write toUserDefaultsusing thedefaultsKeyvalue as the key.Complexity
O(1)
Declaration
Swift
public var localOverridesEnabled: Bool { get set }Return Value
A bool value representing the whether or not the local value should be used when accessing this
Toggle. - 
                  
                  
Getter for a given
Toggleobject’svalue. Must use this getter asnameis markedinternalfor API purposes.Complexity
O(n) where n is the first index of
namein the array of toggles.Declaration
Swift
public func value(forToggle name: String) -> BoolParameters
nameThe name of the toggle that the caller is attempting to access the
valueof.Return Value
A bool value representing whether or not the local value should be used when accessing this
Toggle. - 
                  
                  
Setter for a given
Toggleobject’svalue. Must use this setter asToggler.init()is markedinternalfor API purposes. Calling this function will remove all duplicateToggleobjects based on thenamethat is passed in.Complexity
O(n) where n is the number of
Toggleobjects inside thetogglesarray that have thenameDeclaration
Swift
public func configureToggle(withName name: String, remoteValue: Bool, abValue: String? = nil)Parameters
nameThe name of the toggle that the caller is attempting to set the
valueof.remoteValueThe value that the caller/client’s remote server has configured for this flag/toggle.
abValueThe conditional value that is used for this flag/toggle. Takes precedence over
localValue. - 
                  
                  
Setter for a given
Toggleobject’slocalValue. Must use this setter asToggler.init()is markedinternalfor API purposes.Complexity
O(n) where n is the number of
Toggleobjects inside thetogglesarray that have thenameDeclaration
Swift
public func setLocalValue(value: Bool, forToggleWithName name: String)Parameters
nameThe name of the toggle that the caller is attempting to set the
valueof.valueThe value that the should be set locally for this toggle.
 
        Toggler Class Reference