GigyaCore

public final class GigyaCore<T> : GigyaInstanceProtocol where T : GigyaAccountProtocol

The GigyaCore is the main interface for the SDK instance. Provides all access to Gigya services.

When you use Gigya.sharedInstance() it will return an instance of GigyaCore.

Warning

GigyaCore is designed to use a custom generic schema type (Default: GigyaAccount). If you are instantiating the core using your own schema (Example: Gigya.sharedInstance(CustomSchema.self)) it is required to add the specific schema every time you call to Gigya.sharedInstance().
  • Declaration

    Swift

    public let config: GigyaConfig
  • Initialize the SDK.

    Declaration

    Swift

    public func initFor(apiKey: String, apiDomain: String? = nil)

    Parameters

    apiKey

    Client API-KEY

    apiDomain

    Request Domain.

  • Return SDK interruptions state. if TRUE, interruption handling will be optional via the GigyaLoginCallback.

    Declaration

    Swift

    public var interruptionsEnabled: Bool { get }
  • Update interruption handling. By default, the Gigya SDK will handle various API interruptions to allow simple resolving of certain common errors. Setting interruptions to FALSE will force the end user to handle his own errors.

    Declaration

    Swift

    public func handleInterruptions(sdkHandles: Bool)

    Parameters

    sdkHandles

    False if manually handling all errors.