BlocklyEventFactory

@objcMembers open class BlocklyEventFactory: NSObject

Factory for creating BlocklyEvent objects from JSON data.

This class is designed as a singleton instance, accessible via BlocklyEventFactory.shared.

  • Closure for returning a BlocklyEvent from a JSON dictionary.

    Declaration

    Swift

    public typealias Creator = (_ json: [String: Any]) throws -> BlocklyEvent
  • Shared instance.

    Declaration

    Swift

    public static var shared = BlocklyEventFactory()