FTSkinService
Fintiv’s SkinService Framework entry point
Contents
beaconMonitoringFilter
setup(configurationFile:)
registerDefaultTintColor(_:)
addSkin(_:)
setObjectIdentifierMap(_:)
setPropertyIdentifierMap(_:)
beaconMonitoringFilter
public var beaconMonitoringFilter : SkinBeaconMonitorFilter? = nil
The Beacon monitoring filter to use when ranging beacons
setup(configurationFile:)
public static func setup(configurationFile : String = "SkinService") -> Bool
Configures the Skin Service framework. Must be called before any other call to any member of the framework
- Parameter configurationFile: Name of the property list file, without extension in your main bundle, defaults to “SkinService”
Name | Description |
---|---|
configurationFile | Name of the property list file, without extension in your main bundle, defaults to “SkinService” |
registerDefaultTintColor(_:)
public static func registerDefaultTintColor(_ color : UIColor)
Registers optional default tint color to be applied all navigation controllers if none is defined by a skin or a skin is not present
- Parameter color: barTintColor to apply to UINavigationBars
Name | Description |
---|---|
color | barTintColor to apply to UINavigationBars |
addSkin(_:)
public func addSkin(_ skin : FintivSkin?)
Allows manual setting of a Skin, applied is not already on the skin stack
Use when bundling a json skin with the target, useful when network is unreachable
- Parameter skin: The Fintiv Skin Service Skin to add at the top of the skin stack
Name | Description |
---|---|
skin | The Fintiv Skin Service Skin to add at the top of the skin stack |
setObjectIdentifierMap(_:)
public func setObjectIdentifierMap(_ map : SkinObjectIdentifierMap)
Sets the object identifier map for the skin
- Parameter map: a SkinService object identifier map
Name | Description |
---|---|
map | a SkinService object identifier map |
setPropertyIdentifierMap(_:)
public func setPropertyIdentifierMap(_ map : SkinServicePropertyMap)
Set the framework’s property map
- Parameter map: a SkinService Property Map
Name | Description |
---|---|
map | a SkinService Property Map |
skinController(_:)
public func skinController(_ controller : UIViewController)
Recursively applies current skin to all UI Elements of a controllers for which accessibilityIdentifier are found in the framework’s object identifier map
- Parameter controller: the controller to skin
Name | Description |
---|---|
controller | the controller to skin |
skinView(_:)
public func skinView(_ view : UIView)
Recursively applies current skin to all UI Elements of a UIView for which accessibilityIdentifier are found in the framework’s object identifier map
- Parameter controller: the controller to skin
Name | Description |
---|---|
controller | the controller to skin |
getSkinService(withCompletion:)
public func getSkinService(withCompletion completion : (()->())? = nil)
Fetches the skin service, if available, and fetches the default skin from Fintiv’s cloud
- Parameter completion: optional completion block to execute after default skin if fetched
Name | Description |
---|---|
completion | optional completion block to execute after default skin if fetched |
applySkin(ofType:completion:)
public func applySkin(ofType type : SkinType,
completion : (()->())? = nil)
Applies the first skin on the skin stack that matches the skin type
- Parameters:
- type: The skin type to scan for in the stack
- completion: an optional completion block after the skin is applied
Name | Description |
---|---|
type | The skin type to scan for in the stack |
completion | an optional completion block after the skin is applied |
startMonitoringForBeaconRegions(_:)
public func startMonitoringForBeaconRegions(_ regions : [SkinBeaconRegion])
Starts monitoring an array of Skin Beacon Regions
- Parameter regions: an array of the Skin Beacon Regions to start monitoring
Name | Description |
---|---|
regions | an array of the Skin Beacon Regions to start monitoring |