public class NoResultsFragmentStandard
extends Fragment
When you use the Component API without the Android Support Library, the NoResultsFragmentStandard
displays hints that show how to best take a picture of a document.
Include the NoResultsFragmentStandard
into your layout by using the NoResultsFragmentStandard.createInstance(Document)
factory method to create an instance
and display it using the android.app.FragmentManager
.
Your Activity must implement the NoResultsFragmentListener
interface to receive events
from the No Results Fragment. Failing to do so will throw an exception.
Your Activity is automatically set as the listener in
NoResultsFragmentStandard.onCreate(Bundle)
.
Constructor and Description |
---|
NoResultsFragmentStandard() |
Modifier and Type | Method and Description |
---|---|
static NoResultsFragmentStandard |
createInstance(Document document)
Factory method for creating a new instance of the Fragment.
|
void |
onCreate(Bundle savedInstanceState) |
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) |
void |
showAlertDialog(java.lang.String message,
java.lang.String positiveButtonTitle,
DialogInterface.OnClickListener positiveButtonClickListener,
java.lang.String negativeButtonTitle,
DialogInterface.OnClickListener negativeButtonClickListener,
DialogInterface.OnCancelListener cancelListener) |
public void onCreate(Bundle savedInstanceState)
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
public static NoResultsFragmentStandard createInstance(Document document)
Factory method for creating a new instance of the Fragment.
document
- a Document
for which no valid extractions were receivedpublic void showAlertDialog(java.lang.String message, java.lang.String positiveButtonTitle, DialogInterface.OnClickListener positiveButtonClickListener, java.lang.String negativeButtonTitle, DialogInterface.OnClickListener negativeButtonClickListener, DialogInterface.OnCancelListener cancelListener)