MobileAccessProvider

public class MobileAccessProvider

Configures and provides access to a singleton instance of the MobileAccess object

  • Configure the SDK. Configure cannot be called twice

    Declaration

    Swift

    public static func configure(
        databaseFilePath: URL? = nil,
        localization: MobileAccessLocalization? = nil,
        cloudTlsValidationMode: CloudTlsValidationMode = .anyValidCertificateRequired,
        enabledFeatures: [SdkFeature] = []
    ) -> MobileAccess

    Parameters

    databaseFilePath

    A custom file path for the database can be specified, a default value of ‘com.security.gallagher.mobileaccess.db’ will be used.

    localization

    The localization object, used to customize UI shown by the SDK. Default values will be used if not specified.

    cloudTlsValidationMode

    For debug use; allows control over certificate validation that the SDK will do when connecting to the cloud

    enabledFeatures

    List of SdkFeatures for which features to enable status and error reporting on

  • Get the static shared instance of MobileAccess SDK

    Declaration

    Swift

    public static var instance: MobileAccess { get }