question

Upvotes
Accepted
11 3 6 9

Is there a programmatic way to determine if a window is linked to any others?

I'd like to be able to code to determine if a window is linked to any others. I know that there is no way to programatically set a window link color , but is there a way to programatically see which window link color is currently in use?

eikoneikon-app-studiojet
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvote
Accepted
39.3k 77 11 27

I'm afraid not. An app can be simultaneously linked on multiple color coded broadcast channels. It can also be directionally linked to specific apps outside of color coded broadcast channels.

You can monitor onLinked/onUnlinked events, which tell you when the app is being linked/unlinked to/from other apps, but this event does not provide any additional information such as what apps your app is being linked/unlinked to/from.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.