Loader
instead. It will be no longer available in future releases.@Deprecated
public class NFCCommReaderFragment
extends androidx.fragment.app.Fragment
implements android.nfc.NfcAdapter.ReaderCallback
Modifier and Type | Class and Description |
---|---|
static interface |
NFCCommReaderFragment.FinalTaskListener
Deprecated.
Interface to invoke any task after NFC connectivity is established.
|
static interface |
NFCCommReaderFragment.NFCCommReaderFragmentListener
Deprecated.
Interface to notify about events in the reading process.
|
Modifier and Type | Field and Description |
---|---|
protected NFCCommReaderFragment.FinalTaskListener |
_finalTaskListener
Deprecated.
|
protected SignatureNotification |
_notification
Deprecated.
|
protected android.app.Activity |
_parentActivity
Deprecated.
|
protected boolean |
_preLoadKeyStore
Deprecated.
|
protected NFCCommReaderFragment.NFCCommReaderFragmentListener |
_readerListener
Deprecated.
|
static java.lang.String |
CAN_ARGUMENT_KEY_STRING
Deprecated.
|
static java.lang.String |
ERROR_PIN_LOCKED
Deprecated.
|
static java.lang.String |
KEYSTORETYPE_ARGUMENT_KEY_STRING
Deprecated.
|
Constructor and Description |
---|
NFCCommReaderFragment()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.security.KeyStore |
getKeyStore()
Deprecated.
|
void |
onCreate(android.os.Bundle savedInstanceState)
Deprecated.
Called to do initial creation of a fragment.
|
void |
onDetach()
Deprecated.
Called when the fragment is no longer attached to its activity.
|
void |
onResume()
Deprecated.
Called when the fragment is visible to the user and actively running.
|
void |
onTagDiscovered(android.nfc.Tag tag)
Deprecated.
|
void |
setActivity(android.app.Activity activity)
Deprecated.
|
void |
setFinalTask(NFCCommReaderFragment.FinalTaskListener finalTaskListener)
Deprecated.
|
void |
setReaderListener(NFCCommReaderFragment.NFCCommReaderFragmentListener readerListener)
Deprecated.
|
void |
setSignatureNotification(SignatureNotification notification)
Deprecated.
|
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onDestroyView, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
public static final java.lang.String ERROR_PIN_LOCKED
public static final java.lang.String CAN_ARGUMENT_KEY_STRING
public static final java.lang.String KEYSTORETYPE_ARGUMENT_KEY_STRING
protected boolean _preLoadKeyStore
protected android.app.Activity _parentActivity
protected NFCCommReaderFragment.NFCCommReaderFragmentListener _readerListener
protected SignatureNotification _notification
protected NFCCommReaderFragment.FinalTaskListener _finalTaskListener
public void setActivity(android.app.Activity activity)
public void setReaderListener(NFCCommReaderFragment.NFCCommReaderFragmentListener readerListener)
public void onCreate(android.os.Bundle savedInstanceState)
androidx.fragment.app.Fragment
Fragment.onAttach(Activity)
and before
Fragment.onCreateView(LayoutInflater, ViewGroup, Bundle)
.
Note that this can be called while the fragment's activity is
still in the process of being created. As such, you can not rely
on things like the activity's content view hierarchy being initialized
at this point. If you want to do work once the activity itself is
created, add a LifecycleObserver
on the
activity's Lifecycle, removing it when it receives the
Lifecycle.State#CREATED
callback.
Any restored child fragments will be created before the base
Fragment.onCreate
method returns.
onCreate
in class androidx.fragment.app.Fragment
savedInstanceState
- If the fragment is being re-created from
a previous saved state, this is the state.public void setSignatureNotification(SignatureNotification notification)
public void setFinalTask(NFCCommReaderFragment.FinalTaskListener finalTaskListener)
public void onTagDiscovered(android.nfc.Tag tag)
onTagDiscovered
in interface android.nfc.NfcAdapter.ReaderCallback
public void onResume()
androidx.fragment.app.Fragment
Activity.onResume
of the containing
Activity's lifecycle.onResume
in class androidx.fragment.app.Fragment
public void onDetach()
androidx.fragment.app.Fragment
Fragment.onDestroy()
.onDetach
in class androidx.fragment.app.Fragment
public java.security.KeyStore getKeyStore()