Skip to content

Commit

Permalink
Document that multiple windows are not supported on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Feb 20, 2024
1 parent 2bc1943 commit 1850131
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ use serde::{Deserialize, Serialize};
///
/// ## Platform-specific
///
/// **Web:** The [`Window`], which is represented by a `HTMLElementCanvas`, can
/// not be closed by dropping the [`Window`].
/// - **Web:** The window is represented by a `HTMLElementCanvas`, and cannot
/// currently be closed by dropping the [`Window`].
/// - **Android:** Each window is spawned inside its own process, and as such
/// Winit does not support multiple windows on Android. Create a new
/// activity instead.
pub struct Window {
pub(crate) window: platform_impl::Window,
}
Expand Down

0 comments on commit 1850131

Please sign in to comment.