GeezerVison is showing github.com — docs(windows): extending classes, C# sources, threading by triniwiz · Pull Request #202 · NativeScript/docs
Conversation
triniwiz
commented
Oct 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Updates the Windows docs for NativeScript/windows#21:
- Extending classes and implementing interfaces: rewritten. It covers WinRT and .NET classes,
class syntax and extend(), super, constructor arguments, interfaces, @NativeClass / ES5 output and global.__native(this), and lifetime. The build-time proxy description and the "experimental, prefer composition" warning are removed.
- Native code: C# files in
App_Resources/Windows/src and plugin platforms/windows are compiled into the app and usable by namespace. NuGet namespaces no longer need registerNamespace. Tasks are awaitable; JS functions can be passed for delegates and plain objects for structs; .NET events use add_/remove_.
- Marshalling: background-thread callbacks now run on the UI thread. The "Don't change the UI during layout" crash warning is removed. Static events are assigned on the class.
- Multithreading: Windows callback delivery now matches iOS/Android. A callback runs on the UI thread or worker that created it, whichever thread invokes it. The page notes the deadlock caveat.
- Marshalling: boxed
Object values (for example Tag) read back as JS primitives.
Targets chore/windows, the branch that adds the Windows docs.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Extending WinRT and .NET classes: class syntax, extend(), super, constructor
arguments, interfaces, @NativeClass/ES5 output, lifetime; no build step.
- C# sources in App_Resources/Windows and plugin platforms/windows are compiled
into the app and reachable by namespace; NuGet namespaces need no
registration; Tasks are awaitable; JS functions and plain objects for
delegates and structs.
- Background-thread callbacks run on the UI thread; the layout-mutation crash
warning is gone; static events on class constructors.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f646af2a-b4c9-4ab0-bbdf-a744ce188367
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Deploying nativescript-docs-latest with Cloudflare Pages
View logs
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|