TKConfig

Objective-C

@interface TKConfig : NSObject

+ (TKConfig *)sharedInstance NS_REFINED_FOR_SWIFT;

// Colors
- (nullable NSDictionary *)globalTintColor;
- (nullable NSDictionary *)globalAccentColor;
- (nullable NSDictionary *)globalBarTintColor;
- (nullable NSDictionary *)globalSecondaryBarTintColor;
- (nullable NSDictionary *)globalViewBackgroundColor;
- (BOOL)globalTranslucency;

// Fonts
- (nullable NSDictionary *)preferredFonts;

// Complete raw config information
@property (nonatomic, readonly) NSDictionary *configuration;

@end

Swift

class TKConfig : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    + (TKConfig *)sharedInstance NS_REFINED_FOR_SWIFT;

    Swift

    class func __sharedInstance() -> TKConfig
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSDictionary *)globalTintColor;

    Swift

    func globalTintColor() -> [AnyHashable : Any]?
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSDictionary *)globalAccentColor;

    Swift

    func globalAccentColor() -> [AnyHashable : Any]?
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSDictionary *)globalBarTintColor;

    Swift

    func globalBarTintColor() -> [AnyHashable : Any]?
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSDictionary *)globalSecondaryBarTintColor;

    Swift

    func globalSecondaryBarTintColor() -> [AnyHashable : Any]?
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSDictionary *)globalViewBackgroundColor;

    Swift

    func globalViewBackgroundColor() -> [AnyHashable : Any]?
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)globalTranslucency;

    Swift

    func globalTranslucency() -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSDictionary *)preferredFonts;

    Swift

    func preferredFonts() -> [AnyHashable : Any]?
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSDictionary *configuration

    Swift

    var configuration: [AnyHashable : Any] { get }
  • Declaration

    Swift

    public static let shared: TKConfig

Basic app configuration

  • Declaration

    Swift

    @objc
    public var appGroupName: String? { get }
  • Declaration

    Swift

    @objc
    public var appURLScheme: String? { get }
  • Declaration

    Swift

    public var oauthCallbackURL: URL? { get }
  • URL (including scheme and domain) used when constructing share URLs

    Note

    If this is not set, then sharing within the apps should generally be disabled. You’ll still get, say, a shareURL for a trip, but then will point at https://tripgo.com.

    Declaration

    Swift

    public var shareURLDomain: String? { get }
  • Base URL used to connect to our beta server. This allows WLs to point to a temporary deployment of satapp.

    Note

    If this is not set, then the default base URL, “https://bigbang.buzzhives.com/satapp-beta/” is used.

    Declaration

    Swift

    @objc
    public var betaServerBaseURL: String { get }