public final class CommonWebViewDialog extends RTLDialogFragment
限定符和类型 | 类和说明 |
---|---|
static class |
CommonWebViewDialog.H5Param |
static interface |
CommonWebViewDialog.OnH5InteractListener |
限定符和类型 | 字段和说明 |
---|---|
protected RoundRectWebView |
mWebView |
static java.lang.String |
TAG |
hasSaveInstanceState
构造器和说明 |
---|
CommonWebViewDialog() |
限定符和类型 | 方法和说明 |
---|---|
void |
dismissH5Dialog() |
boolean |
isShowing() |
static CommonWebViewDialog |
newInstance(CommonWebViewDialog.H5Param h5Param,
CommonWebViewDialog.OnH5InteractListener listener)
创建通用dialog示例;直接设置回调,fragment重建有bug,待处理
|
void |
onAttach(android.content.Context context) |
void |
onCreate(android.os.Bundle savedInstanceState) |
android.app.Dialog |
onCreateDialog(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDestroy() |
void |
onResume() |
void |
onStart() |
protected void |
setWebViewBackground() |
void |
showH5Dialog(androidx.fragment.app.FragmentManager manager,
java.lang.String tag) |
dismiss, dismissAllowingStateLoss, onAttach, onSaveInstanceState, onViewCreated, show
getDialog, getShowsDialog, getTheme, isCancelable, onActivityCreated, onCancel, onDestroyView, onDetach, onDismiss, onGetLayoutInflater, onStop, requireDialog, setCancelable, setShowsDialog, setStyle, setupDialog, show, showNow
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, onActivityResult, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, 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 TAG
protected RoundRectWebView mWebView
public static CommonWebViewDialog newInstance(CommonWebViewDialog.H5Param h5Param, CommonWebViewDialog.OnH5InteractListener listener)
public void onAttach(@NonNull android.content.Context context)
onAttach
在类中 androidx.fragment.app.DialogFragment
public void onCreate(android.os.Bundle savedInstanceState)
onCreate
在类中 androidx.fragment.app.DialogFragment
@NonNull public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
onCreateDialog
在类中 androidx.fragment.app.DialogFragment
@Nullable public android.view.View onCreateView(android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
在类中 androidx.fragment.app.Fragment
public void onStart()
onStart
在类中 androidx.fragment.app.DialogFragment
protected void setWebViewBackground()
public void onDestroy()
onDestroy
在类中 androidx.fragment.app.Fragment
public void onResume()
onResume
在类中 RTLDialogFragment
public void showH5Dialog(androidx.fragment.app.FragmentManager manager, java.lang.String tag)
public void dismissH5Dialog()
public boolean isShowing()