BindingModule

public class BindingModule : NSObject

A module for handling device binding and signing callbacks. The callbacks are automatically registered when Journey.createJourney() is called. Manual registration using BindingModule.register() is optional and only needed if you’re not using the Journey framework.

  • Initializes a new BindingModule.

    Declaration

    Swift

    public override init()
  • Registers the device binding and signing callbacks with the CallbackRegistry.

    Note: This method is optional when using the Journey framework, as callbacks are automatically registered when Journey.createJourney() is called. Only call this method if you need to register callbacks manually outside of the Journey flow.

    Declaration

    Swift

    @objc
    public static func registerCallbacks()
  • Sets the logger for the BindingModule and migration.

    Declaration

    Swift

    public static func setLogger(_ logger: Logger)

    Parameters

    logger

    The logger to use.

  • getAllKeys() Asynchronous

    Retrieves all stored binding keys.

    Throws

    An error if the keys cannot be fetched.

    Declaration

    Swift

    public static func getAllKeys() async throws -> [UserKey]

    Return Value

    An array of UserKey objects.

  • deleteKey(_:) Asynchronous

    Deletes a specific binding key.

    Throws

    An error if the key cannot be deleted.

    Declaration

    Swift

    public static func deleteKey(_ key: UserKey) async throws

    Parameters

    key

    The UserKey to delete.

  • deleteAllKeys() Asynchronous

    Deletes all stored binding keys.

    Throws

    An error if deletion fails.

    Declaration

    Swift

    public static func deleteAllKeys() async throws