chore(docs): update platform-specific documentation notes

This commit is contained in:
Lucas Nogueira 2022-01-22 14:35:36 -03:00
parent 28dd9adb26
commit 28a67fdb60
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F
2 changed files with 2 additions and 12 deletions

View File

@ -457,10 +457,6 @@ impl<R: Runtime> Window<R> {
/// Returns the monitor on which the window currently resides.
///
/// Returns None if current monitor can't be detected.
///
/// ## Platform-specific
///
/// - **Linux:** Unsupported
pub fn current_monitor(&self) -> crate::Result<Option<Monitor>> {
self
.window
@ -473,10 +469,6 @@ impl<R: Runtime> Window<R> {
/// Returns the primary monitor of the system.
///
/// Returns None if it can't identify any monitor as a primary one.
///
/// ## Platform-specific
///
/// - **Linux:** Unsupported
pub fn primary_monitor(&self) -> crate::Result<Option<Monitor>> {
self
.window
@ -487,10 +479,6 @@ impl<R: Runtime> Window<R> {
}
/// Returns the list of all the monitors available on the system.
///
/// ## Platform-specific
///
/// - **Linux:** Unsupported
pub fn available_monitors(&self) -> crate::Result<Vec<Monitor>> {
self
.window
@ -547,6 +535,7 @@ impl<R: Runtime> Window<R> {
/// ## Platform-specific
///
/// - **macOS:** `None` has no effect.
/// - **Linux:** Urgency levels have the same effect.
pub fn request_user_attention(
&self,
request_type: Option<UserAttentionType>,

View File

@ -514,6 +514,7 @@ class WindowManager extends WebviewWindowHandle {
* #### Platform-specific
*
* - **macOS:** `null` has no effect.
* - **Linux:** Urgency levels have the same effect.
*
* @param resizable
* @returns A promise indicating the success or failure of the operation.