Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
lawrence_shaun_introducing_net_maui_build_and_deploy_crosspl.pdf
Скачиваний:
50
Добавлен:
26.06.2023
Размер:
5.15 Mб
Скачать

 

Chapter 10 Remote Data

•\

Learn about permissions on the various platforms and

 

how to request them.

•\

Learn how to use the Geolocation API.

•\

Cover how to write your own platform-specific

 

interaction when necessary.

•\

Discover how to tweak the UI based on the platform on

 

which your application is running.

•\

Learn to tweak the UI through the use of the handler

 

architecture.

Source Code

The resulting source code for this chapter can be found on the GitHub repository at https://github.com/Apress/Introducing-MAUI/tree/ main/ch10.

Extra Assignment

There are so many possibilities for accessing remote data in your application! Here are some extra widgets I would like you to consider creating.

TODO Widget

The go-to example application to build in tutorials is a TODO application. I would like you to expand upon this idea and add a TodoWidget into your application. There are several TODO APIs that you could utilize to do this. Do you have a favorite TODO service that you use? I personally like the

331

Chapter 10 Remote Data

Microsoft TODO option. There is some good documentation over on the Microsoft pages to help get you started at https://learn.microsoft.com/ graph/todo-concept-overview

Quote of the Day Widget

I know I certainly like to be inspired with a feel-good quote. Why don’t you consider building a widget to refresh daily and show you a quote of the day?

The They Said So Quotes API offers a good API for doing this exact job with the documentation hosted at https://quotes.rest/.

The other concept that you will need to consider is how to trigger your Scheduler class to trigger the refresh at midnight.

NASA Space Image of the Day Widget

I love some of the images that come from NASA. It is so cool to be able to see into the reaches of space! Quite handily, they have a decent set of

APIs that can enable you to build a widget and show off these images! The documentation on the NASA website really is great and should be able to guide you through the process of accessing the data you need. The NASA API documentation can be found at https://api.nasa.gov/.

I really can’t wait to see these widgets in action!

332

PART IV

Utilizing the platforms