com.cisco.jabber.guest.PreviewFragment Class Reference

The PreviewFragment combines the PreviewView and CallBarView to allow the user to preview their video and initiate a two-way video call with a specified endpoint URI. More...

Inherits com.cisco.jabber.guest.BaseFragment, and OnClickListener.

Public Member Functions

 PreviewFragment ()
 Constructs a new PreviewFragment.
 
boolean hasNetworkConnectivity ()
 Performs tests to verify that the Android device currently has some form of network connectivity (via the ConnectivityManager class in the Android SDK) More...
 
void resetUI ()
 Reset the UI elements of the PreviewFragment. More...
 

Static Public Member Functions

static PreviewFragment createInstance ()
 Create and return an instance of PreviewFragment. More...
 

Protected Member Functions

boolean onCallClick ()
 Subclass and override this method to handle the call button click event. More...
 
- Protected Member Functions inherited from com.cisco.jabber.guest.BaseFragment
void setEnableConfirmEndCallDialog (boolean value)
 Whether we should display the End call confirmation dialog when remote sharing is active. More...
 

Additional Inherited Members

- Protected Attributes inherited from com.cisco.jabber.guest.BaseFragment
boolean mEnableConfirmEndCallDialog = false
 Identifier for displaying the end call confirmation dialog box when doing remote sharing.
 

Detailed Description

The PreviewFragment combines the PreviewView and CallBarView to allow the user to preview their video and initiate a two-way video call with a specified endpoint URI.

By default, when a user clicks the call button inside of this fragment, a FragmentTransaction will execute that will replace this fragment with an instance of CallFragment (to start a call). If you wish to not employ the default behavior for this, you will need to create a custom extension for the PreviewFragment class that extends the onCallClick function to perform intended functionality (see method documentation below for details).

Member Function Documentation

static PreviewFragment com.cisco.jabber.guest.PreviewFragment.createInstance ( )
inlinestatic

Create and return an instance of PreviewFragment.

The fragment will inflate PreviewView and lay them out according to the device display. It will also connect the views to the current JabberGuestCall instance.

Returns
PreviewFragment instance.
boolean com.cisco.jabber.guest.PreviewFragment.hasNetworkConnectivity ( )
inline

Performs tests to verify that the Android device currently has some form of network connectivity (via the ConnectivityManager class in the Android SDK)

Returns
True if network connectivity is detected, false otherwise.
boolean com.cisco.jabber.guest.PreviewFragment.onCallClick ( )
inlineprotected

Subclass and override this method to handle the call button click event.

Returning false from this method indicates that the call click event hasn't been handled and the default behavior should be executed.

Returns
False, perform default behavior when user clicks call button
void com.cisco.jabber.guest.PreviewFragment.resetUI ( )
inline

Reset the UI elements of the PreviewFragment.

It will hide the progress bar and enable the call button.