Repository navigation
Sync with core 8535b032c (add screen capture bindings, Swift support, and Flutter example) - #75
Merged
Merged
Conversation
… and Flutter example)
Freeze the display under the window, then let the user drag, move and resize a selection in a full-display overlay and copy, save or keep the cropped image. On macOS the overlay sits above the menu bar and Dock and appears without flicker: the window hides without AppKit's fade-and-shrink, the frozen frame is decoded before the overlay shows, and the window stays transparent until Flutter has rendered at the new size.
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fresh PR based cleanly on
main(supersedes #19).Depends on libnativeapi/nativeapi-core#112 (core commit
8535b032c). Merge core first; refresh the core gitlink if core is squash-merged.Summary
CaptureSource,ScreenCapturer, andScreenRecorderacross all 7 language bindings (Dart, Rust, C#, JS/TS, Python, Go, and Swift) plus the website API reference (website/content/api/).Class::is_static()) across C ABI and all bindings, including idiomatic caselesspublic enum ScreenCapturerin Swift.bindings/dart/cnativeapi/hook/build.dart,bindings/rust/cnativeapi/build.rs, andbindings/swift/Package.swift(weak-linkingScreenCaptureKiton macOS; adding WGC / D3D11 / Media Foundation libraries on Windows).specs/screen-capture.mdandexamples/flutter_screen_capture_example.Verification (macOS)
./codegen check: passed (85 C ABI files, 426 binding/reference files, 0 new skipped APIs)cargo test --manifest-path tools/codegen/Cargo.toml: 32 passedcmake --build+ctest -R screen_capture_testpasseddart analyze(nativeapi) +flutter analyze(flutter_screen_capture_example) passedcargo test -p nativeapi --test screen_capturepassedswift build+swift test(6 passed)dotnet build NativeAPI.slnx(0 warnings, 0 errors)npx tsc -p tsconfig.json --noEmitpassedcmake --build bindings/go/build+go test -run "Screen|Capture|Record"passedcmake --build bindings/python/build+pytest tests/test_screen_capture.py(2 passed)