Simplifying Android Development with Coroutines and Flows: Learn how to use Kotlin coroutines and the flow API to handle data streams asynchronously i
Tigcal, Jomar
- 出版商: Packt Publishing
- 出版日期: 2022-07-25
- 售價: $1,360
- 貴賓價: 9.5 折 $1,292
- 語言: 英文
- 頁數: 164
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1801816247
- ISBN-13: 9781801816243
-
相關分類:
Android、JVM 語言
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$709Android 高級編程, 4/e
相關主題
商品描述
Get to grips with asynchronous programming in Android using simple, modern, and testable code through Kotlin coroutines and flow
Key Features:
- Find out how to improve app performance with Kotlin coroutines
- Discover the new recommended ways to use Kotlin coroutines and flows
- Learn the basics of asynchronous programming, along with an overview of coroutines and flow
Book Description:
Coroutines and flows are the new recommended way for developers to carry out asynchronous programming in Android using simple, modern, and testable code. This book will teach you how coroutines and flows work and how to use them in building Android applications, along with helping you to develop modern Android applications with asynchronous programming using real data.
The book begins by showing you how to create and handle Kotlin coroutines on Android. You'll explore asynchronous programming in Kotlin, and understand how to test Kotlin coroutines. Next, you'll learn about Kotlin flows on Android, and have a closer look at using Kotlin flows by getting to grips with handling flow cancellations and exceptions and testing the flows.
By the end of this book, you'll have the skills you need to build high-quality and maintainable Android applications using coroutines and flows.
What You Will Learn:
- Understand how coroutines and flows differ from existing ways
- Apply asynchronous programming in Android with coroutines and flows
- Find out how to build your own coroutines and flows in Android
- Handle, manipulate, and combine data in coroutines and flows
- Handle cancellations and exceptions from coroutines and flows
- Discover how to add tests for your coroutines and flows
- Integrate coroutines and flows into your Android projects
Who this book is for:
This book is for intermediate-level Android developers who want to level up their Android app-building skills. Familiarity with Android development and basic knowledge of Kotlin are needed to make the most of this book.
商品描述(中文翻譯)
透過 Kotlin 協程和流,以簡單、現代和可測試的程式碼來掌握 Android 中的非同步程式設計。
主要特點:
- 了解如何使用 Kotlin 協程來提升應用程式效能
- 探索使用 Kotlin 協程和流的新建議方式
- 學習非同步程式設計的基礎知識,以及協程和流的概述
書籍描述:
協程和流是開發人員在 Android 中進行非同步程式設計的新建議方式,使用簡單、現代和可測試的程式碼。本書將教導您協程和流的運作方式,以及如何在建構 Android 應用程式時使用它們,同時幫助您使用真實數據進行現代 Android 應用程式的非同步程式設計。
本書首先展示了如何在 Android 上建立和處理 Kotlin 協程。您將探索 Kotlin 中的非同步程式設計,並了解如何測試 Kotlin 協程。接下來,您將學習在 Android 上使用 Kotlin 流,並深入研究處理流取消和異常以及測試流的方法。
通過閱讀本書,您將具備使用協程和流建立高質量且易於維護的 Android 應用程式所需的技能。
學到什麼:
- 了解協程和流與現有方式的不同之處
- 使用協程和流在 Android 中進行非同步程式設計
- 了解如何在 Android 中建立自己的協程和流
- 處理、操作和結合協程和流中的數據
- 處理協程和流的取消和異常
- 為協程和流添加測試
- 將協程和流整合到您的 Android 專案中
本書適合中級 Android 開發人員,希望提升其 Android 應用程式建構技能。熟悉 Android 開發和基本的 Kotlin 知識將有助於更好地理解本書內容。