public class

SCCallMeLinkController

extends SCBaseController<T extends IViewHolder>
implements ICallMeLinkController
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.callmelink.controller.SCCallMeLinkController

Summary

Public Constructors
SCCallMeLinkController(View view, SCViewDescription viewDescription)
Public Methods
SCCallMeLink getData()
Gets the CallMeLink data
void onButtonShareClicked(View v)
Called if the share button was clicked
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onSwitchActivateChanged(CompoundButton button, boolean isChecked)
Called if the activite/deactivite switch changed
void setData(SCCallMeLink data)
Sets the CallMeLink data
void setDecorator(ICallMeLinkDecorator decorator)
Protected Methods
void onBindViewHolder(ICallMeLinkViewHolder vh)
ICallMeLinkViewHolder 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.callmelink.controller.ICallMeLinkController
From interface com.c2call.sdk.pub.gui.core.common.IActivityResultListener
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Constructors

public SCCallMeLinkController (View view, SCViewDescription viewDescription)

Public Methods

public SCCallMeLink getData ()

Gets the CallMeLink data

Returns
  • the CallMeLink data

public void onButtonShareClicked (View v)

Called if the share button was clicked

Parameters
v the clicked button

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 onSwitchActivateChanged (CompoundButton button, boolean isChecked)

Called if the activite/deactivite switch changed

Parameters
button the button that changed
isChecked wether it is checked now

public void setData (SCCallMeLink data)

Sets the CallMeLink data

Parameters
data the CallMe link data to be set

public void setDecorator (ICallMeLinkDecorator decorator)

Protected Methods

protected void onBindViewHolder (ICallMeLinkViewHolder vh)

protected ICallMeLinkViewHolder onCreateViewHolder (View v, SCViewDescription vd)