CodeGeneratorServiceRequestBuilder

@objcMembers open class CodeGeneratorServiceRequestBuilder: NSObject

Builder for making CodeGeneratorServiceRequest instances.

  • The name of the JS object that should be used for each request (e.g. ‘Blockly.Python’)

    Declaration

    Swift

    open let jsGeneratorObject: String
  • List of block generator JS files that should be used for each request (e.g. [‘python_compressed.js’])

    Declaration

    Swift

    open private(set) var jsBlockGeneratorFiles = [BundledFile]()
  • List of JSON files containing block definitions that should be used for each request

    Declaration

    Swift

    open private(set) var jsonBlockDefinitionFiles = [BundledFile]()
  • Create a builder for making CodeGeneratorServiceRequest instances.

    Declaration

    Swift

    public init(jsGeneratorObject: String)
  • Adds to the list of JS block generator files that should be used for each request.

    Declaration

    Swift

    public func addJSBlockGeneratorFiles(_ files: [String])
  • Adds to the list of JS block generator files that should be used for each request.

    Declaration

    Swift

    public func addJSBlockGeneratorFiles(_ files: [String], bundle: Bundle)
  • Adds to the list of JSON block definition files that should be used for each request.

    Declaration

    Swift

    public func addJSONBlockDefinitionFiles(fromDefaultFiles defaultFiles: BlockJSONFile)
  • Adds to the list of JSON block definition files that should be used for each request.

    Declaration

    Swift

    public func addJSONBlockDefinitionFiles(_ files: [String])
  • Adds to the list of JSON block definition files that should be used for each request.

    Declaration

    Swift

    public func addJSONBlockDefinitionFiles(_ files: [String], bundle: Bundle)