b2970e4c-45a2-423e-b84d-257.../Sources/MioPlugin.swift

19 lines
477 B
Swift
Raw Permalink Normal View History

//
// MioPlugin.swift
// Mio Island Plugin SDK (verbatim copy from host).
// Runtime conformance is by ObjC selector, not module identity.
//
import AppKit
@objc protocol MioPlugin: AnyObject {
var id: String { get }
var name: String { get }
var icon: String { get }
var version: String { get }
func activate()
func deactivate()
func makeView() -> NSView
@objc optional func viewForSlot(_ slot: String, context: [String: Any]) -> NSView?
}