public class NoResultsFragmentCompat
extends Fragment
When you use the Component API with the Android Support Library, the NoResultsFragmentCompat
displays hints that show how to best take a picture of a document.
Include the NoResultsFragmentCompat
into your layout by using the NoResultsFragmentCompat.createInstance(Document)
factory method to create an instance and
display it using the android.support.v4.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 NoResultsFragmentCompat.onCreate(Bundle)
.
Constructor and Description |
---|
NoResultsFragmentCompat() |
Modifier and Type | Method and Description |
---|---|
static NoResultsFragmentCompat |
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 NoResultsFragmentCompat 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)