Skip to content

How to send data to the property inspector? #141

Closed Answered by MaterialFoundry
MaterialFoundry asked this question in Help
Discussion options

You must be logged in to vote

I figured it out, for anyone else struggling with this:

To send data to the PI:

streamDeck.ui.current?.sendToPropertyInspector(payload);

Which, in the PI code can be received using:

SDPIComponents.streamDeckClient.sendToPropertyInspector.subscribe((ev) => {
   //do stuff here
})`

The other way around, to send data to the plugin:

SDPIComponents.streamDeckClient.send('sendToPlugin', payload);

Which can be received the SingletonAction class using:

override async onSendToPlugin(ev: SendToPluginEvent): Promise<void> {
  //do stuff here
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MaterialFoundry
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants