public interface

IAudioRecordController

implements IController<T extends IViewHolder>
com.c2call.sdk.pub.gui.audiorecord.controller.IAudioRecordController
Known Indirect Subclasses

Class Overview

Inteface for AudioRecord controllers

Summary

Public Methods
abstract MediaPlayer getPlayer()
abstract long getRecordedDuration()
abstract boolean isPlayFinished()
abstract boolean isRecordFinished()
abstract boolean isRecording()
abstract void onButtonPlayClick(View v)
Called when the play button was clicked
abstract void onButtonRecordClick(View v)
Called when the record button was clicked
abstract void onButtonSubmitClick(View v)
Called when the submit button was clicked
abstract void setOutputFile(String filename)
Sets the path of the output file
[Expand]
Inherited Methods
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Methods

public abstract MediaPlayer getPlayer ()

Returns
  • the Player instance

public abstract long getRecordedDuration ()

Returns
  • the duration of the recording, in milliseconds

public abstract boolean isPlayFinished ()

Returns
  • whether playing as finished

public abstract boolean isRecordFinished ()

Returns
  • whether recording has finished

public abstract boolean isRecording ()

Returns
  • whether audio is currenty recording

public abstract void onButtonPlayClick (View v)

Called when the play button was clicked

Parameters
v the button that was clicked

public abstract void onButtonRecordClick (View v)

Called when the record button was clicked

Parameters
v the button that was clicked

public abstract void onButtonSubmitClick (View v)

Called when the submit button was clicked

Parameters
v the button that was clicked

public abstract void setOutputFile (String filename)

Sets the path of the output file

Parameters
filename the abolut path of the output file