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

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
主站蜘蛛池模板: 庄河市| 涿鹿县| 苍南县| 临城县| 运城市| 故城县| 剑河县| 将乐县| 九寨沟县| 新巴尔虎左旗| 沙田区| 和田县| 荔波县| 天峨县| 兰溪市| 永新县| 民权县| 德保县| 沾化县| 慈利县| 乐亭县| 德化县| 宁国市| 调兵山市| 荥阳市| 渝北区| 内江市| 临江市| 钟祥市| 台南县| 城步| 镇坪县| 怀集县| 喀喇沁旗| 年辖:市辖区| 八宿县| 肇州县| 湛江市| 新竹县| 丰原市| 舟曲县|