| 1 |
from collections.abc import Callable |
| 2 |
from typing import Any |
| 3 |
|
| 4 |
def get_appearance(effective: bool = False) -> str: |
| 5 |
"Get the current (or effective) NSApplication appearance name, or the empty string if unset" |
| 6 |
pass |
| 7 |
|
| 8 |
def set_appearance(value: str) -> None: |
| 9 |
'Set the application appearance to one of "system", "light" or "dark"' |
| 10 |
pass |
| 11 |
|
| 12 |
def set_requires_aqua_system_appearance(yes: bool | None) -> None: |
| 13 |
"Set (or if None, remove) the NSRequiresAquaSystemAppearance user default" |
| 14 |
pass |
| 15 |
|
| 16 |
def get_requires_aqua_system_appearance() -> bool | None: |
| 17 |
"Get the NSRequiresAquaSystemAppearance user default, or None if it is unset" |
| 18 |
pass |
| 19 |
|
| 20 |
def transient_scroller() -> bool: |
| 21 |
"Return True if the preferred NSScroller style is the overlay style" |
| 22 |
pass |
| 23 |
|
| 24 |
def cursor_blink_time() -> float: |
| 25 |
"Return the text insertion point blink period in milliseconds, or -1 if the cursor should not blink" |
| 26 |
pass |
| 27 |
|
| 28 |
def enable_cocoa_multithreading() -> None: |
| 29 |
"Start an NSThread so that Cocoa knows the process is multithreaded" |
| 30 |
pass |
| 31 |
|
| 32 |
def set_notification_activated_callback(callback: Callable[[str | None], Any]) -> None: |
| 33 |
"Set the function called with the notification identifier when a user notification is activated" |
| 34 |
pass |
| 35 |
|
| 36 |
def airdrop_share(*paths: str) -> None: |
| 37 |
"airdrop_share(*paths) -> None -- Share the specified files via AirDrop." |
| 38 |
pass |
| 39 |
|
| 40 |
def send_notification( |
| 41 |
identifier: str | None, |
| 42 |
title: str, |
| 43 |
informative_text: str | None, |
| 44 |
use_sound: bool = False, |
| 45 |
subtitle: str | None = None, |
| 46 |
) -> None: |
| 47 |
"Schedule display of a user notification via UNUserNotificationCenter" |
| 48 |
pass |
| 49 |
|
| 50 |
def disable_cocoa_ui_elements(tabbing: bool = True, menu_items: bool = True) -> None: |
| 51 |
"Disable automatic window tabbing and/or the Start Dictation/Emoji & Symbols/Enter Full Screen menu items" |
| 52 |
pass |
| 53 |
|
| 54 |
def send2trash(path: str) -> None: |
| 55 |
"Move the file at path to the trash" |
| 56 |
pass |
| 57 |
|
| 58 |
def locale_names(*args: str) -> tuple[str, ...]: |
| 59 |
"Return the display name for each of the given language/locale codes in the current locale, falling back to the code itself if unavailable" |
| 60 |
pass |
| 61 |
|
| 62 |
def create_io_pm_assertion(type: str, reason: str, on: bool = True) -> int: |
| 63 |
"Create an IOPMAssertion of the specified type with the specified reason, returning its id" |
| 64 |
pass |
| 65 |
|
| 66 |
def release_io_pm_assertion(assertion_id: int) -> None: |
| 67 |
"Release a previously created IOPMAssertion given its id" |
| 68 |
pass |
| 69 |
|
| 70 |
def close_finder_window(name: str) -> None: |
| 71 |
"Close the Finder window identified by name" |
| 72 |
pass |
| 73 |
|
| 74 |
kIOPMAssertionTypePreventUserIdleSystemSleep: str |
| 75 |
kIOPMAssertionTypePreventUserIdleDisplaySleep: str |
| 76 |
kIOPMAssertionTypePreventSystemSleep: str |
| 77 |
kIOPMAssertionTypeNoIdleSleep: str |
| 78 |
kIOPMAssertionTypeNoDisplaySleep: str |