Skip to content

Conversation

@okwasniewski
Copy link
Member

Summary:

This PR implements window manager events, which solves #135.

Users will be able to listen to window state changes:

  React.useEffect(() => { 
    const listener = WindowManager.addEventListener('windowStateDidChange', (data) => {
      console.log('Window state changed to:', data);
    });
    return () => {
      listener.remove();
    };
  }, []);

CleanShot 2024-04-16 at 13 49 36@2x

The main window always has the id: 0

Changelog:

[VISIONOS] [ADDED] - Implement window manager events

Test Plan:

CI Green

@okwasniewski okwasniewski force-pushed the feat/window-manager-events branch 8 times, most recently from 5eb60f4 to 1995ce0 Compare April 17, 2024 06:17
@okwasniewski okwasniewski force-pushed the feat/window-manager-events branch from 1995ce0 to 680cb27 Compare April 17, 2024 08:24
@okwasniewski okwasniewski merged commit 380ab35 into main Apr 17, 2024
@okwasniewski okwasniewski deleted the feat/window-manager-events branch April 17, 2024 11:11
okwasniewski added a commit that referenced this pull request Jun 4, 2024
okwasniewski added a commit that referenced this pull request Jun 5, 2024
okwasniewski added a commit that referenced this pull request Jun 5, 2024
okwasniewski added a commit that referenced this pull request Jun 21, 2024
okwasniewski added a commit that referenced this pull request Jun 21, 2024
okwasniewski added a commit that referenced this pull request Jun 24, 2024
okwasniewski added a commit that referenced this pull request Jul 15, 2024
okwasniewski added a commit that referenced this pull request Jul 29, 2024
okwasniewski added a commit that referenced this pull request Jul 29, 2024
okwasniewski added a commit that referenced this pull request Jul 31, 2024
okwasniewski added a commit that referenced this pull request Aug 5, 2024
okwasniewski added a commit that referenced this pull request Aug 23, 2024
okwasniewski added a commit that referenced this pull request Aug 23, 2024
okwasniewski added a commit that referenced this pull request Aug 26, 2024
okwasniewski added a commit that referenced this pull request Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants