- 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
推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- Boost.Asio C++ Network Programming(Second Edition)
- 機器學習系統:設計和實現
- Learning Docker
- Mastering Ubuntu Server
- Scratch 3.0少兒編程與邏輯思維訓練
- 深入理解Java7:核心技術與最佳實踐
- Visual C#.NET程序設計
- 零基礎學單片機C語言程序設計
- 批調度與網絡問題的組合算法
- Mastering Android Game Development
- 時空數據建模及其應用
- Orchestrating Docker
- 零基礎學C語言(升級版)
- Python 3 Object:oriented Programming(Second Edition)