Question: Lifecycle Handling #56

Closed
opened 2025-04-16 04:00:10 +02:00 by jj11 · 5 comments
  • I don't if we have lifecycle process of handling GTK apps just like ios or android but I only ask because I have been playing around with Bare (https://github.com/holepunchto/bare) runtime which would allow js in ios and android native apps.
  • So I was thinking to integrate and make P2P apps for desktop using Swift and GTK?
- I don't if we have lifecycle process of handling GTK apps just like ios or android but I only ask because I have been playing around with Bare (https://github.com/holepunchto/bare) runtime which would allow js in ios and android native apps. - So I was thinking to integrate and make P2P apps for desktop using Swift and GTK?
Owner

So you're talking about running js inside of a Swift app? I'm afraid I can't help you there a lot, as I don't have experience in this field. I do not know whether a Bare integration would be feasible. Sorry :(

So you're talking about running js inside of a Swift app? I'm afraid I can't help you there a lot, as I don't have experience in this field. I do not know whether a Bare integration would be feasible. Sorry :(
Author

Sure I get you, also I don't have experience just learning!! It's easy to integrate but I wanted to know about lifeycycle process if it exists or not in GTK when making desktop apps.

Sure I get you, also I don't have experience just learning!! It's easy to integrate but I wanted to know about lifeycycle process if it exists or not in GTK when making desktop apps.
Author

is there support for ScenePhase? like in iOS

is there support for ScenePhase? like in iOS
Owner

To check whether the window is in the foreground, one can use Gtk.Window.is_active. I have not yet added a Swift wrapper around this, but I could if you'd like.

To check whether the window is in the foreground, one can use [Gtk.Window.is_active](https://docs.gtk.org/gtk4/method.Window.is_active.html). I have not yet added a Swift wrapper around this, but I could if you'd like.
Author

No that's fine at moment until I play around on integrating with bare.

No that's fine at moment until I play around on integrating with bare.
jj11 closed this issue 2025-04-17 01:27:09 +02:00
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aparoksha/adwaita-swift#56
No description provided.