Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement window manager events #142

Merged
merged 1 commit into from
Apr 17, 2024
Merged

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 merged commit 380ab35 into main Apr 17, 2024
13 checks passed
@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.

1 participant