JavaScriptEnvironment

@objc(UAJavaScriptEnvironment)
public final class JavaScriptEnvironment : NSObject, JavaScriptEnvironmentProtocol, @unchecked Sendable

The JavaScript environment builder that is used by the native bridge.

  • Declaration

    Swift

    @objc(addStringGetter:value:)
    public func add(_ getter: String, string: String?)
  • Declaration

    Swift

    @objc(addNumberGetter:value:)
    public func add(_ getter: String, number: NSNumber?)
  • Declaration

    Swift

    @objc(addDictionaryGetter:value:)
    public func add(_ getter: String, dictionary: [AnyHashable : Any]?)
  • build() Asynchronous

    Declaration

    Swift

    public func build() async -> String