public class

SCFriendsFragmentActivity

extends SCControlledFragmentActivity<T extends IController>
implements SCFriendsFragment.Callbacks ILoaderHandlerContext
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.SCFriendsFragmentActivity

Class Overview

Simple implementation of an Activity that is controlled by a IFriendsController. It contains a single SCFriendsFragment and may be started manually like:

 final Intent intent = new Intent(activity, SCFriendsActivity.class);
 intent.putExtra(SCExtraData.BaseFragmentData.EXTRA_DATA_LAYOUT, R.layout.sc_friends);
 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
SCFriendsFragmentActivity()
Public Methods
Context getLoaderContext()
void onRegisterFriendsCommunictation(IFriendsFragmentCommunictation c)
Called to register a communication to a SCBoardFragment
void onShowBoard(String id)
Called to show the board filtered by specified id
void onShowContactDetail(String userid, int userType)
Called to show the details of a contact
void onShowGroupDetail(SCFriendGroup group)
Called to show details of the given group
Protected Methods
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.SCFriendsFragment.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 SCFriendsFragmentActivity ()

Public Methods

public Context getLoaderContext ()

public void onRegisterFriendsCommunictation (IFriendsFragmentCommunictation c)

Called to register a communication to a SCBoardFragment

Parameters
c the communication object

public void onShowBoard (String id)

Called to show the board filtered by specified id

Parameters
id optional ID to filter the board.

public void onShowContactDetail (String userid, int userType)

Called to show the details of a contact

Parameters
userid ID of the contact to show
userType the type of the contact. See SCFriendManager for possible values

public void onShowGroupDetail (SCFriendGroup group)

Called to show details of the given group

Protected Methods

protected Fragment onCreateFragment ()

Creates the fragment used in this activity.

Returns
  • a Fragment