public class

SCCallbarFragmentActivity

extends SCControlledFragmentActivity<T extends IController>
implements SCCallbarFragment.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.SCCallbarFragmentActivity

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:

 final Intent intent = new Intent(activity, SCCallbarActivity.class);
 intent.putExtra(SCExtraData.Callbar.EXTRA_DATA_ID, userid); // userid of the
 // caller
 intent.putExtra(SCExtraData.BaseFragmentData.EXTRA_DATA_LAYOUT, R.layout.sc_callbar);
 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
SCCallbarFragmentActivity()
Public Methods
String getUserid()
void onBackPressed()
void onRegisterCallbarCommunictation(IFragmentCommunication c)
Called to register a communication to a SCCallbarFragment
Protected Methods
int getLayout(boolean isVideo)
void onCreate(Bundle savedInstanceState)
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.SCCallbarFragment.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 SCCallbarFragmentActivity ()

Public Methods

public String getUserid ()

public void onBackPressed ()

public void onRegisterCallbarCommunictation (IFragmentCommunication c)

Called to register a communication to a SCCallbarFragment

Parameters
c the communication object

Protected Methods

protected int getLayout (boolean isVideo)

protected void onCreate (Bundle savedInstanceState)

protected Fragment onCreateFragment ()

Creates the fragment used in this activity.

Returns
  • a Fragment