public class

SCCallbarFragment

extends SCBaseFragment<T extends IController, Callbacks extends IFragmentCallbacks>
implements IFragmentCommunication
java.lang.Object
   ↳ android.app.Fragment
     ↳ com.c2call.sdk.pub.fragments.core.SCBaseFragment<T extends com.c2call.sdk.pub.gui.core.controller.IController, Callbacks extends com.c2call.sdk.pub.fragments.core.IFragmentCallbacks>
       ↳ com.c2call.sdk.pub.fragments.SCCallbarFragment

Class Overview

This fragment is controlled by ICallbarController and provides a view to show a running call.

Summary

Nested Classes
interface SCCallbarFragment.Callbacks Callbacs for SCCallbarFragment  
[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
SCCallbarFragment()
Instantiates a new SCCallbarFragment
Public Methods
static SCCallbarFragment create(String id, int layout)
Creates new Fragment.
void onCreate(Bundle savedInstanceState)
void onDestroy()
Protected Methods
int getDefaultLayout()
If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default
void onBindCommunication(SCCallbarFragment.Callbacks callbacks)
void onControllerPostCreate(ICallbarController controller)
IFragmentCommunication onCreateCommunication()
Called to create a communication object for this Fragment
ICallbarController onCreateController(View v, SCViewDescription vd)
Called in onActivityCreated(Bundle) to create a IController for this fragment
SCViewDescription onCreateViewDescription()
Create a SCViewDescription that is used in onCreateController(View, SCViewDescription) to create a new Controller
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.fragments.core.SCBaseFragment
From class android.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.View.OnCreateContextMenuListener
From interface com.c2call.sdk.pub.fragments.communication.IFragmentCommunication
From interface com.c2call.sdk.pub.gui.core.controller.IControllerRequestListener

Public Constructors

public SCCallbarFragment ()

Instantiates a new SCCallbarFragment

Public Methods

public static SCCallbarFragment create (String id, int layout)

Creates new Fragment.

Parameters
id the ID of the calling partner
layout the layout that is used is this Fragment
Returns
  • the newly created Fragment

public void onCreate (Bundle savedInstanceState)

public void onDestroy ()

Protected Methods

protected int getDefaultLayout ()

If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default

Returns
  • the default layout for this fragment

protected void onBindCommunication (SCCallbarFragment.Callbacks callbacks)

protected void onControllerPostCreate (ICallbarController controller)

Parameters
controller the Controller

protected IFragmentCommunication onCreateCommunication ()

Called to create a communication object for this Fragment

Returns

protected ICallbarController onCreateController (View v, SCViewDescription vd)

Called in onActivityCreated(Bundle) to create a IController for this fragment

Parameters
v the view that is needed to create the controller. This is the result of onCreateView(LayoutInflater, ViewGroup, Bundle)
vd the view that is needed to create the contrller
Returns
  • the controller that will control this Fragment

protected SCViewDescription onCreateViewDescription ()

Create a SCViewDescription that is used in onCreateController(View, SCViewDescription) to create a new Controller

Returns