Package io.rong.imkit.manager

## Class AudioPlayManager

- All Implemented Interfaces:

      public class AudioPlayManager

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static AudioPlayManager` | `getInstance()` |
    `void` | `onSensorChanged(SensorEvent event)` |
    `void` | `onAccuracyChanged(Sensor sensor, int accuracy)` |
    `void` | `startPlay(Context context, Uri audioUri, IAudioPlayListener playListener)` |
    `void` | `setPlayListener(IAudioPlayListener listener)` |
    `void` | `stopPlay()` |
    `Uri` | `getPlayingUri()` |
    `boolean` | `isInNormalMode(Context context)` | 检查AudioPlayManager是否处于通道正常的状态。
    `boolean` | `isInVOIPMode(Context context)` |
    `void` | `setInVoipMode(boolean isVOIPMode)` |
    `boolean` | `isPlaying()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### getInstance

           static AudioPlayManager getInstance()

    - #### onSensorChanged

           void onSensorChanged(SensorEvent event)

    - #### onAccuracyChanged

           void onAccuracyChanged(Sensor sensor, int accuracy)

    - #### startPlay

           void startPlay(Context context, Uri audioUri, IAudioPlayListener playListener)

    - #### setPlayListener

           void setPlayListener(IAudioPlayListener listener)

    - #### stopPlay

           void stopPlay()

    - #### getPlayingUri

           Uri getPlayingUri()

    - #### isInNormalMode

           boolean isInNormalMode(Context context)

      检查AudioPlayManager是否处于通道正常的状态。

      Parameters:
        `context` - 上下文
      Returns:

        是否处于通道正常的状态

    - #### isInVOIPMode

           boolean isInVOIPMode(Context context)

    - #### setInVoipMode

           void setInVoipMode(boolean isVOIPMode)

    - #### isPlaying

           boolean isPlaying()