Summary
In this chapter, you created a simple application that communicates with the Twitter API over the Internet to download a list of tweets for a given user. All code involved with accessing the network and API was entirely contained to the shared library, and worked seamlessly across all platforms. Each application implemented a native user interface on top of that shared layer. While the implementations were similar across all of them, there is nothing preventing you from creating entirely different interfaces and user experiences for each of them. The observer pattern introduced in the last chapter was also leveraged to allow the shared layer to publish notifications to the application that a mention was received. In the next chapter, we will explore some options for persisting data in your applications, making use of both the filesystem and local databases.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access