UsherSDKConfiguration

@objc
public class UsherSDKConfiguration : NSObject

An instance of UsherSDKConfiguration is required to initialize the UsherSDK. Create an instance and configure it for your application before initializing the UsherSDK.

  • The application group. If set this will be used to create a shared container to write data to for features that need the data presistence.

    Declaration

    Swift

    @objc
    public var applicationGroup: String?
  • The KeychainAccess group. If set the keychain items created by UsherSDK will be accessible to the group.

    Declaration

    Swift

    @objc
    public var keychainAccessGroup: String?
  • The app id prefix from developer portal. This is used along with the KeychainAccess group.

    Declaration

    Swift

    @objc
    public var appIDPrefix: String?
  • The URL scheme of the application

    Declaration

    Swift

    @objc
    public var urlScheme: String?
  • Application Id issued by Usher Server.

    Declaration

    Swift

    @objc
    public var usherApplicationId: String
  • An optional feature flags that can be used to toggle the SDK features. Should be set at initialization time only.

    Declaration

    Swift

    public var featureFlags: UsherSDKFeatureFlags
  • Declaration

    Swift

    @objc
    public convenience init(applicationGroup: String? = nil,
                            keychainAccessGroup: String? = nil)
    Parameters
    applicationGroup

    If set, UsherSDK will create a copy of any generated data in a shared container.

    keychainAccessGroup

    If set, the keychain items created by UsherSDK will be accessible to the group.