BKResolveSettings

open class BKResolveSettings: NSObject

Property set of settings to configure the resolving process of data from blukii Info Manager (https://manager.blukiiinfo.com)

You can access the BKResolveSettings by calling BKClient.resolveSettings

Every settings value is writeable and has a default value that is used if not changed by the developer.

With the exception of getLanguagePriority() the ResolveSettings properties are only affecting the discovery process that is started by BKClient.initDiscovery()

For the single resolving process that is started by BKClient.resolveInputElement(input: BKInputElement) only getLanguagePriority() is relevant.

  • The state if the resolver is enabled for discovered BLE modules

    Default: false

    Declaration

    Swift

    open var resolveEnabled = false
  • Default cache timeout: 180000 milliseconds (30 mintues)

    Declaration

    Swift

    open let CACHETIMEOUT_DEFAULT = 30 * 60000
  • The Timeout for the resolver cache.

    You can use this feature to minimize network traffic by caching resolved values. If BKResolveData is found for one blukii number the next network request will be done again only after cache timeout.

    You have to consider the following application states to define when caching should be enabled:

    • isCacheEnabledOnForeground(): App is in foreground
    • isCacheEnabledOnBackground(): App is in background

    Cache Timout in milliseconds, default is CACHETIMEOUT_DEFAULT

    Declaration

    Swift

    open var cacheTimeout: Int
  • The state if cache is enabled when App is in foreground

    cache enabled state, default is false

    Declaration

    Swift

    open var cacheEnabledOnForeground = false
  • The state if cache is enabled when App is in background

    cache enabled state, default is true

    Declaration

    Swift

    open var cacheEnabledOnBackground = true