Beginning Networking with URLSession [SUBSCRIBER]
source link: https://www.raywenderlich.com/28450876-beginning-networking-with-urlsession
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Introduction to URLSession & Concurrency
Introduction
5:30 FreeIntroduction to the Beginning Networking with URLSession course.
Introduction to Modern Concurrency
12:57 FreeIntroduction to the modern concurrency features of Swift.
More Modern Concurrency
13:33 FreeContinuing the coverage of Swift’s modern concurrency features.
In this challenge episode you will put your existing knowledge about Swift concurrency to the test in order to ensure some code runs on the main thread.
Learn about URLSessionConfiguration and how to leverage it to modify your URLSession’s behavior.
Learn to work with URLSession and how to use it to download data from a server.
In this challenge episode you will put your existing knowledge about URLSession to the test in order to download and display data downloaded from the network.
Conclusion
1:22Wrap up the first part of the course and review the learned contents.
Download Data
Introduction
1:26Introduction to part 2 of the Beginning Networking with URLSession course.
Take a look at how tasks oftentimes require different priorities, as well as defining what will be cached.
Download Music
15:35Apply the concepts learned in the previous lecture, regarding priorities and caching, in order to download music from the iTunes preview API.
Handle Errors
7:28URL requests can sometimes go wrong. Learn how to handle errors during networking operations.
Leverage the concepts learned in the previous lecture, but apply them towards downloading images corresponding to album artwork.
Performing lengthy uploads or downloads without any visual indication of progress is not the best user experience. This episiode will show you how to provide a progress indicator for a download.
Grouping Requests
9:45Learn how to group multiple URLSession tasks so they execute concurrently, but are reported as completed when all requests have finished.
In order to deliver the best user experience you need to test your appls with the same types of network conditions that your users might encounter. This episode will show you how to simulate poor network connections.
Apps will likely run into scenarios that require a download or upload to be paused, resumed, or canceled entirely. This episode will cover these topics.
Conclusion
2:08Wrap up the course and review the learned contents.
Version history
iOS 15, Swift 5.6, Xcode 13.4.1 (Selected)
Sep 13 2022iOS 13, Swift 5.2, Xcode 11
Jun 9 2020iOS 12, Swift 4, Xcode 10
Oct 9 2018iOS 11, Swift 4, Xcode 9
Nov 28 2017iOS 10, Swift 3, Xcode 8
Mar 21 2017iOS 9, Swift 2, Xcode 7
May 16 2016Who is this for?
Intermediate developers. You should be comfortable with the Swift programming language.
You’ll start by getting an overview of concurrency, then you’ll learn how to make simple network requests. Later, you’ll learn how to download files, how to group your network requests, show download progress, and handle errors.
Finaly, you’ll learn how to pause, cancel, and resume your downloads.
Covered concepts
- URLSession
- URLSessionConfiguration
- Downloading Files
- Pausing, Resuming and Canceling Downloads
- Showing Network Progress
- Simulating Different Network Speeds
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK