mirror of
https://github.com/carey314/mio-plugin-clipper.git
synced 2026-08-10 07:44:32 +00:00
19 lines
477 B
Swift
19 lines
477 B
Swift
|
|
//
|
||
|
|
// 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?
|
||
|
|
}
|