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

  • 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, 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
主站蜘蛛池模板: 湖南省| 宕昌县| 义乌市| 兰州市| 瑞金市| 黎城县| 西昌市| 茶陵县| 耒阳市| 肇州县| 伊川县| 淅川县| 天全县| 华亭县| 文昌市| 响水县| 湘潭县| 怀集县| 内江市| 临海市| 尉氏县| 洪雅县| 和平区| 清水县| 罗山县| 始兴县| 乃东县| 承德市| 安义县| 武陟县| 南川市| 保靖县| 木里| 汉川市| 伽师县| 永安市| 西林县| 陈巴尔虎旗| 武义县| 吴忠市| 乐亭县|