public class

SCIncomingCallFragmentActivity

extends SCControlledFragmentActivity<T extends IController>
implements SCIncomingCallFragment.Callbacks
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.c2call.sdk.pub.activities.core.SCBaseFragmentActivity
             ↳ com.c2call.sdk.pub.activities.core.SCSingleFragmentActivity
               ↳ com.c2call.sdk.pub.activities.core.SCControlledFragmentActivity<T extends com.c2call.sdk.pub.gui.core.controller.IController>
                 ↳ com.c2call.sdk.pub.activities.SCIncomingCallFragmentActivity

Class Overview

Simple implementation of an Activity that is controlled by a ICallbarController. It contains a single SCCallbarFragment. It is implicitly started if call is started by any C2Call SDK GUI element. But may be started manually like:

 SCIncomingCallData data = getData(); // SCIncomingCallData contains some info of the caller
 final Intent intent = new Intent(activity, SCIncomingCallActivity.class);
 intent.putExtra(SCExtraData.IncomingCall.EXATR_DATA_INCOMING_CALL, data);
 intent.setAction(Intent.ACTION_VIEW);
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 activity.startActivity(intent);

 

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class com.c2call.sdk.pub.activities.core.SCSingleFragmentActivity
From class android.app.Activity
Public Constructors
SCIncomingCallFragmentActivity()
Public Methods
void onBackPressed()
void onRegisterIncomingCallCommunictation(IFragmentCommunication c)
Called to register a communication to a SCIncomingCallFragment
Protected Methods
int getLayout(boolean isVideo)
Gets the layout for the content view of this Activity.
Fragment onCreateFragment()
Creates the fragment used in this activity.
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.activities.core.SCControlledFragmentActivity
From class com.c2call.sdk.pub.activities.core.SCSingleFragmentActivity
From class com.c2call.sdk.pub.activities.core.SCBaseFragmentActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface com.c2call.sdk.pub.fragments.SCIncomingCallFragment.Callbacks
From interface com.c2call.sdk.pub.gui.core.controller.IControllerRequestListener
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContext
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContextProvider

Public Constructors

public SCIncomingCallFragmentActivity ()

Public Methods

public void onBackPressed ()

public void onRegisterIncomingCallCommunictation (IFragmentCommunication c)

Called to register a communication to a SCIncomingCallFragment

Parameters
c the communication object

Protected Methods

protected int getLayout (boolean isVideo)

Gets the layout for the content view of this Activity. Typically you have two different layouts for video- and audio calls

Parameters
isVideo whether the incoming call is a video call
Returns
  • the layout for this content view

protected Fragment onCreateFragment ()

Creates the fragment used in this activity.

Returns
  • a Fragment