public class

SCIncomingCallController

extends SCBasePictureController<V extends IPictureViewHolder>
implements IDataChangedListener<T> IIncomingCallController
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.core.controller.SCBasePictureController<V extends com.c2call.sdk.pub.gui.core.controller.IPictureViewHolder>
       ↳ com.c2call.sdk.pub.gui.incomingcall.controller.SCIncomingCallController

Summary

[Expand]
Inherited Fields
From class com.c2call.sdk.pub.gui.core.controller.SCBasePictureController
Public Constructors
SCIncomingCallController(View view, SCViewDescription viewDescription)
Public Methods
SCCallInData getData()
Gets the data.
String getInterlocutorId()
String getTo()
boolean onBackPressed()
Notify the controller that the back button was pressed
void onButtonRejectClick(View v)
Called when the reject button was clicked
void onButtonTakeAudioClick(View v)
Called when the take audio button was clicked
void onButtonTakeVideoClick(View v)
Called when the take video button clicked
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onDataChanged(SCCallInData data)
void onDecorate()
Called to update the view elements
void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void setData(SCCallInData data)
Sets the data.
Protected Methods
int getCallbarLayout(boolean isVideo)
void internalOpenCallbar(boolean isVideo)
void onBindViewHolder(IIncomingCallViewHolder vh)
IIncomingCallViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onOpenCallbar(String userid, String to, boolean isVideo)
void onSendInviteOk(boolean isVideo)
void onTake(boolean isVideo)
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBasePictureController
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.data.IDataChangedListener
From interface com.c2call.sdk.pub.gui.core.common.IActivityResultListener
From interface com.c2call.sdk.pub.gui.core.controller.IController
From interface com.c2call.sdk.pub.gui.core.controller.IPictureController
From interface com.c2call.sdk.pub.gui.incomingcall.controller.IIncomingCallController

Public Constructors

public SCIncomingCallController (View view, SCViewDescription viewDescription)

Public Methods

public SCCallInData getData ()

Gets the data.

Returns
  • the data

public String getInterlocutorId ()

public String getTo ()

public boolean onBackPressed ()

Notify the controller that the back button was pressed

Returns
  • true if this event was consumed.

public void onButtonRejectClick (View v)

Called when the reject button was clicked

Parameters
v the clicked button

public void onButtonTakeAudioClick (View v)

Called when the take audio button was clicked

Parameters
v the v

public void onButtonTakeVideoClick (View v)

Called when the take video button clicked

Parameters
v the v

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 onDataChanged (SCCallInData data)

public void onDecorate ()

Called to update the view elements

public void onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void setData (SCCallInData data)

Sets the data.

Parameters
data the new data

Protected Methods

protected int getCallbarLayout (boolean isVideo)

protected void internalOpenCallbar (boolean isVideo)

protected void onBindViewHolder (IIncomingCallViewHolder vh)

protected IIncomingCallViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onOpenCallbar (String userid, String to, boolean isVideo)

protected void onSendInviteOk (boolean isVideo)

protected void onTake (boolean isVideo)