Accessing Platform Features in .NET MAUI [7 of 8] | .NET MAUI for Beginners

preview_player
Показать описание

Welcome to the .NET MAUI for Beginners Series where you will learn the basics of building multi-platform apps with .NET MAUI for iOS, Android, macOS, and Windows from a shared C# code base. In this video, James shows off how .NET MAUI enables developers to easily access platform APIs through C#. He also walks through using one of the many cross-platform APIs to access these features that .NET MAUI includes such as the Connectivity API. He shows how to access the APIs, use dependency injection, and check for internet in a single line of code.

Follow James:

Links:

Corrections:
03:00 - [ICommand] is now [RelayCommand] starting in the final version of community toolkit for mvvm

#dotnet #dotnetmaui #ios #android #windows #macos #csharp

Рекомендации по теме
Комментарии
Автор

Correction: 03:00 - [ICommand] is now [RelayCommand] starting in the final version of community toolkit for mvvm

dotnet
Автор

Would love to see the addition of push notifications on he phone (when the app is in the background). e.g. A task is close to a due date and you receive a notification.

GuildOfCalamity
Автор

I noticed you glossed over something at 1:56 which I've been wondering about as I was following along. I'm on a VM testing the pre-release and it's a Ryzen CPU. Not sure if I can set Hyper V inside a VMWare VM and my Android Phone isn't showing up in the VM as a target to run on, so I'm just going with the Windows Machine as with your window on the left. Given there's no swipe gesture on a windows desktop app I can't swipe to delete and I see you didn't even do it yourself, nor even mention the difference. So how would you handle delete usability for a specific target?

stephenyork
Автор

I would really love a video on how to write your code in Windows Visual Studio and take that same code base over to the Mac to compile for MacOS. I have a Mac system that I use to test for iOS (without any issues), but I have no idea how to compile my project for MacOS. Sorry if this has already been addressed, but I have searched and searched, and found very little information on how to do this.

The only thing that I can think of is to have a Subversion or Git server that holds my project files (obviously a great idea anyway), and then access those same files from the Mac. However, that feels more like a work-around than a solution. Any help here would be greatly appreciated.

TheRabidgoalie
Автор

I noticed on the IOS when you clicked back to the main page the title bar still had DetailPage on it? Why did it not update to Main Page?

christophertock
Автор

Hello, Can i use front and back camera with this API ?

jonathan-yrkf
Автор

When using the WSA I get an null object reference exception when trying to use the gotoasync() function, but this functions correctly in the windows framework. Has anyone else seen this?

ryanringer
Автор

Kindly help me how to apply authentication and authorisation in MAUI + BLAZOR Hybrid app

AbdulAziz-xilo
Автор

i already add viewmodel namespaces and x:datatype, now my viewmodel not loaded into view wtf

enricoroselino
Автор

Thank you. I study C# and want write for MacOS, Android, Windows, Apple in one time.
Very cool. I love C++, but when coding on C++ feel like Hacker or Scammer, its not good☹. Language very powerful, have beutiful syntax, I feel like I work with metal. C# its something another. Thank you!

arseniy.k
Автор


Now, using a MAUI app, I tried to access the same service and it gave exception and can't access. On Windows and Linux, I have to trust the root CA cert that I used to sign the SSL certs with. Now, how do I do it for Android? What is the best practice for this? Could someone please enlighten me on this?

LonewolfNSP
Автор

I can't believe I have to say it but you are pronouncing your last name incorrectly.

TheKennyWorld
Автор

the BG music is so irritating and distracting.... is this a tutorial on orchestra????

manjitkmohan