emorydunn / StreamDeckPlugin

A library for creating Stream Deck plugins in Swift.
https://emorydunn.github.io/StreamDeckPlugin/
MIT License
50 stars 7 forks source link

missing events #24

Closed justme-1968 closed 6 months ago

justme-1968 commented 6 months ago

would you mind adding some missing events/messages:

also: i think it would be nice if there was a way to handle unknown events maybe by registering a handler for a specific unknown event or a general handler that will receive everything that is not known.

and probably the same for sending

emorydunn commented 6 months ago

Not sure how I missed those two events during the last update, I'll add them in.

Implementing an unknown event handler is a good idea, I should be able to add a method to the main plugin protocol to handle them, with a default implementation that just logs the event as unknown.

emorydunn commented 6 months ago

I've added Plugin.didReceiveDeepLink(_:) and associated event routing as well as Action.openURL(_:) to open URLs from an action instance.

There's also a new Plugin.eventError(_:data:) to handle errors parsing events. This will be called for unknown events where the data can be manually parsed as needed.

justme-1968 commented 6 months ago

perfect. i will try...

could you please bump the version number. i can't get Xcode to update the package to the latest version. even after a clean, manual removal, and a few other tries there seems to be still a cached version somewhere.