# AudioPlayManager

public class AudioPlayManager

## Functions

getInstance
Link copied to clipboard
public static AudioPlayManager getInstance()
getPlayingUri
Link copied to clipboard
public Uri getPlayingUri()
isInNormalMode
Link copied to clipboard
public boolean isInNormalMode(Context context)
检查AudioPlayManager是否处于通道正常的状态。
isInVOIPMode
Link copied to clipboard
public boolean isInVOIPMode(Context context)
isPlaying
Link copied to clipboard
public boolean isPlaying()
onAccuracyChanged
Link copied to clipboard
public void onAccuracyChanged(Sensor sensor, int accuracy)
onSensorChanged
Link copied to clipboard
public void onSensorChanged(SensorEvent event)
setInVoipMode
Link copied to clipboard
public void setInVoipMode(boolean isVOIPMode)
setPlayListener
Link copied to clipboard
public void setPlayListener(IAudioPlayListener listener)
startPlay
Link copied to clipboard
public void startPlay(Context context, Uri audioUri, IAudioPlayListener playListener)
stopPlay
Link copied to clipboard
public void stopPlay()