From the course: .NET MAUI Essential Training
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Creating the iOS service - .NET MAUI Tutorial
From the course: .NET MAUI Essential Training
Creating the iOS service
- [Instructor] Let's go back into our platform-specific folders in our library here. Remember, we had our VersionInfo. Let's go ahead and just open that, and we're just going to copy this whole thing. And now we'll go down for iOS. We'll rename this. Call it VersionInfo. We'll open it up. We'll paste that in. And now we've got Android code in our iOS piece, which isn't going to work for us. But I can use NSProcessInfo. Go out here. I'm using Foundation. I got the ProcessInfo, OperatingSystemName. And that's what we'll turn on iOS. I'm going to go ahead with the MacCatalyst, I'm just going to delete the PlatformClass that's in there. And then we'll copy and paste from the iOS version in there. So that should work. And then let's go to Windows. Go ahead and rename this. VersionInfo. And we'll open that up. Paste, I'm going to do paste. We've got that in. And so, for here, we're just going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Defining a platform-neutral service5m 26s
-
(Locked)
Creating the Android service3m 4s
-
(Locked)
Creating the iOS service3m 45s
-
(Locked)
Using the Essentials library5m 11s
-
(Locked)
Additional Essentials3m 31s
-
(Locked)
Configuring Essentials3m 31s
-
(Locked)
Challenge: Add Windows service47s
-
(Locked)
Solution: Add Windows service1m 40s
-
(Locked)
-