docs(windows): extending classes, C# sources, threading - #202
Merged
Merged
Conversation
- 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 skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Deploying nativescript-docs-latest with
|
| Latest commit: |
0bbe931
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://79ca870a.nativescript-docs-beta.pages.dev |
| Branch Preview URL: | https://docs-windows-extending-threa.nativescript-docs-beta.pages.dev |
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.
Updates the Windows docs for NativeScript/windows#21:
classsyntax andextend(),super, constructor arguments, interfaces,@NativeClass/ ES5 output andglobal.__native(this), and lifetime. The build-time proxy description and the "experimental, prefer composition" warning are removed.App_Resources/Windows/srcand pluginplatforms/windowsare compiled into the app and usable by namespace. NuGet namespaces no longer needregisterNamespace. Tasks are awaitable; JS functions can be passed for delegates and plain objects for structs; .NET events useadd_/remove_.Objectvalues (for exampleTag) read back as JS primitives.Targets
chore/windows, the branch that adds the Windows docs.