public class

SCStartControl

extends Object
implements IStartControl
java.lang.Object
   ↳ com.c2call.sdk.pub.core.SCStartControl

Summary

Public Constructors
SCStartControl()
Public Methods
void closeVideoCallFloatView()
boolean open(Context context, View anchor, int layout, SCBaseFactory factory, Class<? extends Activity> clazz, StartType startType)
boolean openAddFriend(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to add an existing user to his friend list
boolean openAddGroup(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to let the user create a new group
boolean openAudioRecord(Activity activity, Fragment fragment, View anchor, int layout, String outputPath, StartType startType)
This Method opens a view, that lets the user record audio
boolean openBoard(Activity activity, View anchor, int layout, String userid, StartType startType)
This Method opens the board view.
boolean openCallMeLink(Activity activity, View anchor, int layout, SCCallMeLink data, StartType startType)
This Method opens a view to let the user enable/disable the SCCallMeLink
boolean openCallbar(Context activity, View anchor, String userid, int layout, StartType startType)
This Method opens the call bar.
boolean openCallbar(Context activity, View anchor, String userid, String to, int layout, StartType startType)
This Method opens the call bar.
boolean openChangePassword(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to let the user change his password
boolean openContactDetail(Activity activity, View anchor, int layout, SCFriendData contact, StartType startType)
This Method opens a contact detail view.
boolean openContactInvite(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view, that lets the user invite contacts of his local address book
boolean openContacts(Activity activity, View anchor, int layout, IFilterProvider<SCFriendData, String> filterProvider, StartType startType)
This Method opens a filtered subset of the local address book
boolean openCustomStatus(Activity activity, View anchor, int layout, String[] predefinedStatuses, StartType startType)
This Method opens a view, that lets the user specifiy a custom status like "busy", "available", etc.
boolean openDialpad(Activity activity, View anchor, int layout, StartType startType)
This Method opens the dialpad view
boolean openForgotPassword(Activity activity, View anchor, int layout, StartType startType)
This Method opens a "forgot password" view
boolean openForward(Activity activity, View anchor, int layout, SCCallForward forward, StartType startType)
This Method opens the call forwarding view.
boolean openFriends(Activity activity, View anchor, int layout, StartType startType)
This method opens a friend list
boolean openGroupDetail(Activity activity, View anchor, int layout, SCFriendGroup group, StartType startType)
This Method opens a group detail view.
boolean openGroupDetail(Activity activity, View anchor, int layout, String userid, StartType startType)
This Method opens a group detail view.
boolean openIncomingCall(Activity activity, View anchor, int layout, SCIncomingCallData data, StartType startType)
This Method opens the "incoming call" view
boolean openInvite(Activity activity, View anchor, int layout, SCInvitation invitation, StartType startType)
This Method opens a view to invite a new user
boolean openMain(Activity activity)
This method opens your main activity.
boolean openNewMessage(Activity activity, View anchor, int layout, SCFriendData friend, StartType startType)
boolean openOfferwall(Activity activity, View anchor, int layout, StartType startType)
This Method opens the offerwall
boolean openPopup(Context context, View anchor, int layout, SCBaseFactory factory)
boolean openProfile(Activity activity, View anchor, int layout, StartType startType)
This Method opens the profile view.
boolean openRegister(Activity activity, View anchor, int layout, SCRegistrationData data, StartType startType)
This Method opens the view to register a new user
boolean openSelectContacts(Activity activity, Fragment fragment, View anchor, int layout, IFilterProvider<SCFriendData, String> filterProvider, String selectionKey, StartType startType)
This Method opens a view to let the user select a contact from local address book
boolean openSelectFriends(Activity activity, Fragment fragment, View anchor, int layout, IFilterProvider<SCFriendData, String> filterProvider, String selectionKey, StartType startType)
This Method opens a view to let the user select a Friend
boolean openShareLocation(Activity activity, View anchor, int layout)
boolean openVerifyNumber(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to verify the phone number of the ueser
boolean openVideoCall(Context context, View anchor, int layout, IVideoSlave slave, StartType startType)
This Method opens the video call view
boolean openVideoCallFloatWindow(Context context)
static void startActivityForResult(Activity activity, Fragment f, Intent intent, int requestCode)
void toggleVideoCallFloatViewVisibility()
Protected Methods
StartType resolveStartType(Context context, StartType startType)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.c2call.sdk.pub.core.IStartControl

Public Constructors

public SCStartControl ()

Public Methods

public void closeVideoCallFloatView ()

public boolean open (Context context, View anchor, int layout, SCBaseFactory factory, Class<? extends Activity> clazz, StartType startType)

public boolean openAddFriend (Activity activity, View anchor, int layout, StartType startType)

This Method opens a view to add an existing user to his friend list

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openAddGroup (Activity activity, View anchor, int layout, StartType startType)

This Method opens a view to let the user create a new group

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openAudioRecord (Activity activity, Fragment fragment, View anchor, int layout, String outputPath, StartType startType)

This Method opens a view, that lets the user record audio

Parameters
activity The activity that opens the new view. Maybe null if fragment is used
fragment The fragment that opens the new view. Maybe null if activity is used
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
outputPath The path where to save the audio file
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openBoard (Activity activity, View anchor, int layout, String userid, StartType startType)

This Method opens the board view.

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
userid If set then the board should be filtered to show only events related to that userid. May be null
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openCallMeLink (Activity activity, View anchor, int layout, SCCallMeLink data, StartType startType)

This Method opens a view to let the user enable/disable the SCCallMeLink

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openCallbar (Context activity, View anchor, String userid, int layout, StartType startType)

This Method opens the call bar.

Parameters
activity The Context that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
userid The userid of the interlocutor
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openCallbar (Context activity, View anchor, String userid, String to, int layout, StartType startType)

This Method opens the call bar.

Parameters
activity The Context that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openChangePassword (Activity activity, View anchor, int layout, StartType startType)

This Method opens a view to let the user change his password

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openContactDetail (Activity activity, View anchor, int layout, SCFriendData contact, StartType startType)

This Method opens a contact detail view.

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
contact The contact whose detail should be shown
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openContactInvite (Activity activity, View anchor, int layout, StartType startType)

This Method opens a view, that lets the user invite contacts of his local address book

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openContacts (Activity activity, View anchor, int layout, IFilterProvider<SCFriendData, String> filterProvider, StartType startType)

This Method opens a filtered subset of the local address book

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
filterProvider A filter provider to filter the contact list
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openCustomStatus (Activity activity, View anchor, int layout, String[] predefinedStatuses, StartType startType)

This Method opens a view, that lets the user specifiy a custom status like "busy", "available", etc.

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
predefinedStatuses A list of predefined statusus to select from
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openDialpad (Activity activity, View anchor, int layout, StartType startType)

This Method opens the dialpad view

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openForgotPassword (Activity activity, View anchor, int layout, StartType startType)

This Method opens a "forgot password" view

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openForward (Activity activity, View anchor, int layout, SCCallForward forward, StartType startType)

This Method opens the call forwarding view.

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
forward The SCCallForward that will be modified. Typically taken from SCProfile
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openFriends (Activity activity, View anchor, int layout, StartType startType)

This method opens a friend list

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openGroupDetail (Activity activity, View anchor, int layout, SCFriendGroup group, StartType startType)

This Method opens a group detail view.

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
group The group whose detail should be shown
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openGroupDetail (Activity activity, View anchor, int layout, String userid, StartType startType)

This Method opens a group detail view.

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
userid The group id whose detail should be shown
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openIncomingCall (Activity activity, View anchor, int layout, SCIncomingCallData data, StartType startType)

This Method opens the "incoming call" view

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
data This object holds some information of the incoming call
startType Specifies how the view should be shown. Typically a fullscreen activity
Returns
  • true if new view is successfully opened, false otherwise

public boolean openInvite (Activity activity, View anchor, int layout, SCInvitation invitation, StartType startType)

This Method opens a view to invite a new user

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
invitation Optional invitation data to pre-fill some invitation fields
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openMain (Activity activity)

This method opens your main activity.

Parameters
activity The activity that opens the new view.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openNewMessage (Activity activity, View anchor, int layout, SCFriendData friend, StartType startType)

public boolean openOfferwall (Activity activity, View anchor, int layout, StartType startType)

This Method opens the offerwall

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openPopup (Context context, View anchor, int layout, SCBaseFactory factory)

public boolean openProfile (Activity activity, View anchor, int layout, StartType startType)

This Method opens the profile view.

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openRegister (Activity activity, View anchor, int layout, SCRegistrationData data, StartType startType)

This Method opens the view to register a new user

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
data Optional registration data to pre-fill some registration fields.
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openSelectContacts (Activity activity, Fragment fragment, View anchor, int layout, IFilterProvider<SCFriendData, String> filterProvider, String selectionKey, StartType startType)

This Method opens a view to let the user select a contact from local address book

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
filterProvider A filter provider to filter the user list
selectionKey A key that is used to store the selection in SCSelectionManager for later use.
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openSelectFriends (Activity activity, Fragment fragment, View anchor, int layout, IFilterProvider<SCFriendData, String> filterProvider, String selectionKey, StartType startType)

This Method opens a view to let the user select a Friend

Parameters
activity The activity that opens the new view. Maybe null if fragment is used
fragment The fragment that opens the new view. Maybe null if activity is used
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
filterProvider A filter provider to filter the user list
selectionKey A key that is used to store the selection in SCSelectionManager for later use.
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openShareLocation (Activity activity, View anchor, int layout)

public boolean openVerifyNumber (Activity activity, View anchor, int layout, StartType startType)

This Method opens a view to verify the phone number of the ueser

Parameters
activity The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openVideoCall (Context context, View anchor, int layout, IVideoSlave slave, StartType startType)

This Method opens the video call view

Parameters
context The activity that opens the new view.
anchor If startType is Popup, then this is the anchor for the popup, otherwise the parameter is ignored
layout The layout resource id that is used to inflate the view
slave The video call slave that controlls a video call.
startType Specifies how the view should be shown.
Returns
  • true if new view is successfully opened, false otherwise

public boolean openVideoCallFloatWindow (Context context)

public static void startActivityForResult (Activity activity, Fragment f, Intent intent, int requestCode)

public void toggleVideoCallFloatViewVisibility ()

Protected Methods

protected StartType resolveStartType (Context context, StartType startType)