官术网_书友最值得收藏!

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, and AVAudioRecorder, or the Android MediaPlayer and MediaRecorder 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 the AVAudioPlayer framework
  • The Mvx IoC container
  • The audio player
  • A cleaner code approach to NSLayout
  • Creating AudioPlayerPageViewModel
  • Implementing the Android SoundHandler using the MediaPlayer framework
  • XML and Mvx bindings
主站蜘蛛池模板: 安康市| 鸡东县| 重庆市| 正安县| 长宁区| 乃东县| 泰州市| 时尚| 宜良县| 滨海县| 上思县| 鄯善县| 高安市| 甘德县| 如皋市| 修文县| 和平区| 寿光市| 谷城县| 德清县| 临邑县| 黔江区| 山丹县| 怀安县| 曲周县| 淮安市| 鹤岗市| 松原市| 青州市| 扎赉特旗| 东平县| 伊川县| 鞍山市| 赤城县| 盐山县| 改则县| 朝阳区| 宣化县| 正安县| 宁武县| 永顺县|