public interface

IStartControl

com.c2call.sdk.pub.core.IStartControl
Known Indirect Subclasses

Class Overview

An implementation if this interface has to be set in the singleton of C2CallSdk Several standard events will trigger calls to methods of this class. E.g. a click on a list item controlled by SCFriendListItemController will call openContactDetail()

Summary

Public Methods
abstract void closeVideoCallFloatView()
abstract boolean openAddFriend(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to add an existing user to his friend list
abstract boolean openAddGroup(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to let the user create a new group
abstract 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
abstract boolean openBoard(Activity activity, View anchor, int layout, String userid, StartType startType)
This Method opens the board view.
abstract 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
abstract boolean openCallbar(Context ctx, View anchor, String userid, int layout, StartType startType)
This Method opens the call bar.
abstract boolean openCallbar(Context ctx, View anchor, String userid, String to, int layout, StartType startType)
This Method opens the call bar.
abstract boolean openChangePassword(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to let the user change his password
abstract boolean openContactDetail(Activity activity, View anchor, int layout, SCFriendData contact, StartType startType)
This Method opens a contact detail view.
abstract 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
abstract 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
abstract 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.
abstract boolean openDialpad(Activity activity, View anchor, int layout, StartType startType)
This Method opens the dialpad view
abstract boolean openForgotPassword(Activity activity, View anchor, int layout, StartType startType)
This Method opens a "forgot password" view
abstract boolean openForward(Activity activity, View anchor, int layout, SCCallForward forward, StartType startType)
This Method opens the call forwarding view.
abstract boolean openFriends(Activity activity, View anchor, int layout, StartType startType)
This method opens a friend list
abstract boolean openGroupDetail(Activity activity, View anchor, int layout, SCFriendGroup group, StartType startType)
This Method opens a group detail view.
abstract boolean openGroupDetail(Activity activity, View anchor, int layout, String groupid, StartType startType)
This Method opens a group detail view.
abstract boolean openIncomingCall(Activity activity, View anchor, int layout, SCIncomingCallData data, StartType startType)
This Method opens the "incoming call" view
abstract boolean openInvite(Activity activity, View anchor, int layout, SCInvitation invitation, StartType startType)
This Method opens a view to invite a new user
abstract boolean openMain(Activity activity)
This method opens your main activity.
abstract boolean openNewMessage(Activity activity, View anchor, int layout, SCFriendData friend, StartType startType)
abstract boolean openOfferwall(Activity activity, View anchor, int layout, StartType startType)
This Method opens the offerwall
abstract boolean openProfile(Activity activity, View anchor, int layout, StartType startType)
This Method opens the profile view.
abstract boolean openRegister(Activity activity, View anchor, int layout, SCRegistrationData data, StartType startType)
This Method opens the view to register a new user
abstract 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
abstract 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
abstract boolean openShareLocation(Activity activity, View anchor, int layout)
abstract boolean openVerifyNumber(Activity activity, View anchor, int layout, StartType startType)
This Method opens a view to verify the phone number of the ueser
abstract boolean openVideoCall(Context context, View anchor, int layout, IVideoSlave slave, StartType startType)
This Method opens the video call view
abstract boolean openVideoCallFloatWindow(Context context)
abstract void toggleVideoCallFloatViewVisibility()

Public Methods

public abstract void closeVideoCallFloatView ()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract boolean openCallbar (Context ctx, View anchor, String userid, int layout, StartType startType)

This Method opens the call bar.

Parameters
ctx 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 abstract boolean openCallbar (Context ctx, View anchor, String userid, String to, int layout, StartType startType)

This Method opens the call bar.

Parameters
ctx 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract boolean openGroupDetail (Activity activity, View anchor, int layout, String groupid, 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
groupid 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 abstract 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 abstract 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 abstract 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 abstract boolean openNewMessage (Activity activity, View anchor, int layout, SCFriendData friend, StartType startType)

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract boolean openShareLocation (Activity activity, View anchor, int layout)

public abstract 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 abstract 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 abstract boolean openVideoCallFloatWindow (Context context)

public abstract void toggleVideoCallFloatViewVisibility ()