public class

SCAudioRecordController

extends SCBaseController<T extends IViewHolder>
implements IAudioRecordController
java.lang.Object
   ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseController<T extends com.c2call.sdk.pub.gui.core.controller.IViewHolder>
     ↳ com.c2call.sdk.pub.gui.audiorecord.controller.SCAudioRecordController

Summary

Nested Classes
class SCAudioRecordController.SavedState  
Public Constructors
SCAudioRecordController(View view, SCViewDescription viewDescription, IControllerRequestListener requestListener)
SCAudioRecordController(View view, SCViewDescription viewDescription)
Public Methods
MediaPlayer getPlayer()
long getRecordedDuration()
boolean isPlayFinished()
boolean isRecordFinished()
boolean isRecording()
void onButtonPlayClick(View v)
Called when the play button was clicked
void onButtonRecordClick(View v)
Called when the record button was clicked
void onButtonSubmitClick(View v)
Called when the submit button was clicked
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void setDecorator(IAudioRecordDecorator decorator)
void setOutputFile(String filename)
Sets the path of the output file
Protected Methods
void onBindViewHolder(IAudioRecordViewHolder vh)
IAudioRecordViewHolder onCreateViewHolder(View v, SCViewDescription vd)
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBaseController
From class java.lang.Object
From interface android.view.View.OnAttachStateChangeListener
From interface com.c2call.sdk.pub.gui.audiorecord.controller.IAudioRecordController
From interface com.c2call.sdk.pub.gui.core.common.IActivityResultListener
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Constructors

public SCAudioRecordController (View view, SCViewDescription viewDescription, IControllerRequestListener requestListener)

public SCAudioRecordController (View view, SCViewDescription viewDescription)

Public Methods

public MediaPlayer getPlayer ()

public long getRecordedDuration ()

public boolean isPlayFinished ()

public boolean isRecordFinished ()

public boolean isRecording ()

public void onButtonPlayClick (View v)

Called when the play button was clicked

Parameters
v the button that was clicked

public void onButtonRecordClick (View v)

Called when the record button was clicked

Parameters
v the button that was clicked

public void onButtonSubmitClick (View v)

Called when the submit button was clicked

Parameters
v the button that was clicked

public void onCreate (Activity context, SCActivityResultDispatcher resultDispatcher)

This should be called when your Activity is created. Typically in onCreate(...) of the surrounding Activiy.

Parameters
context the surrounding activity
resultDispatcher a result dispatcher that is used by the controller

public void setDecorator (IAudioRecordDecorator decorator)

public void setOutputFile (String filename)

Sets the path of the output file

Parameters
filename the abolut path of the output file

Protected Methods

protected void onBindViewHolder (IAudioRecordViewHolder vh)

protected IAudioRecordViewHolder onCreateViewHolder (View v, SCViewDescription vd)