- Xamarin Blueprints
- Michael Williams
- 152字
- 2021-07-08 11:48:27
Chapter 4. Building an Audio Player Application
In this chapter, we move back to native Xamarin. We will integrate native audio functions for processing a sound file using the AVFramework
in iOS with the AVAudioSessions
, AVAudioSettings
, and AVAudioRecorder
objects. In Android you will use the MediaPlayer
object from the Android.Media
library.
Expected knowledge:
- Some knowledge of either iOS
AVAudioSessions
,AVAudioSettings
, andAVAudioRecorder
, or the AndroidMediaPlayer
andMediaRecorder
classes - NSLayoutConstraints
In this chapter, you will learn the following:
- Project setup
- Inversion of control with MVVMCross
- View models with Xamarin native
- Creating the bindings
- NSLayoutContraints
- MVVMCross setup inside the Portable Class Library
- Setting up MVVMCross with iOS
- Setting up MVVMCross with Android
- The
SoundHandler
interface - Implementing the iOS
SoundHandler
using theAVAudioPlayer
framework - The Mvx IoC container
- The audio player
- A cleaner code approach to
NSLayout
- Creating
AudioPlayerPageViewModel
- Implementing the Android
SoundHandler
using theMediaPlayer
framework - XML and Mvx bindings
推薦閱讀
- 在最好的年紀學Python:小學生趣味編程
- Oracle Exadata性能優化
- Computer Vision for the Web
- Apache Spark Graph Processing
- Java程序員面試算法寶典
- 老“碼”識途
- Oracle BAM 11gR1 Handbook
- OpenShift在企業中的實踐:PaaS DevOps微服務(第2版)
- 你不知道的JavaScript(中卷)
- Mastering Python Networking
- R Deep Learning Cookbook
- Elasticsearch Server(Third Edition)
- Mastering Apache Maven 3
- C#實踐教程(第2版)
- Canvas Cookbook