- 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
推薦閱讀
- Oracle Database In-Memory(架構與實踐)
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- Windows Presentation Foundation Development Cookbook
- JavaScript by Example
- 小程序,巧運營:微信小程序運營招式大全
- 程序員修煉之道:通向務實的最高境界(第2版)
- Learning Data Mining with R
- Kotlin從基礎到實戰
- 區塊鏈技術與應用
- MongoDB,Express,Angular,and Node.js Fundamentals
- SQL 經典實例
- Scala編程(第5版)
- Xamarin Blueprints
- SignalR:Real-time Application Development(Second Edition)
- Delphi開發典型模塊大全(修訂版)