public class

SCIncomingCallFragment

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.SCIncomingCallFragment

Class Overview

This fragment is controlled by IIncomingCallController and provides a view to show in incoming call.

Summary

Nested Classes
interface SCIncomingCallFragment.Callbacks Callbacks of SCIncomingCallFragment  
[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
SCIncomingCallFragment()
Public Methods
static SCIncomingCallFragment create(SCIncomingCallData data, int layout)
Creates new Fragment.
boolean onBackPressed()
Notify the fragment that the back button was pressed
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(SCIncomingCallFragment.Callbacks callbacks)
IFragmentCommunication onCreateCommunication()
Called to create a communication object for this Fragment
IIncomingCallController 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 SCIncomingCallFragment ()

Public Methods

public static SCIncomingCallFragment create (SCIncomingCallData data, int layout)

Creates new Fragment.

Parameters
data the data of the incoming call to sho
layout the layout that is used is this Fragment
Returns
  • the newly created Fragment

public boolean onBackPressed ()

Notify the fragment that the back button was pressed

Returns
  • true if the event was consumed.

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 (SCIncomingCallFragment.Callbacks callbacks)

protected IFragmentCommunication onCreateCommunication ()

Called to create a communication object for this Fragment

Returns

protected IIncomingCallController 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