![]() |
Jabber Guest Android SDK
|
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.sdk.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... | |
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
|
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.
|
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.
|
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
|
inline |
Reset the UI elements of the PreviewFragment.
It will hide the progress bar and enable the call button.