public class H5Fragment
extends androidx.fragment.app.Fragment
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
BOTTOM_BTN_TYPE |
static int |
BOTTOM_BTN_TYPE_FEEDBACK |
static int |
BOTTOM_BTN_TYPE_HIDE |
static java.lang.String |
EULA_URL2 |
static java.lang.String |
EXTRA_PURCHACE |
static java.lang.String |
EXTRA_PURCHACE_NAME |
static java.lang.String |
EXTRA_PURCHACE_UID |
static java.lang.String |
FAQ_URL |
static int |
FROM_GROUP_KINGDOM_TASK |
static java.lang.String |
HIDE_CLOSE |
static java.lang.String |
HIDE_TITLEBAR |
static java.lang.String |
HOSTINFO |
static java.lang.String |
KINGDOM_URL_RELEASE |
protected android.os.Handler |
mBaseHandler |
com.app.common.webview.LiveWebView |
mWebView |
static int |
REQUEST_CODE_GROUP |
static java.lang.String |
SINGLE_BACK |
static java.lang.String |
SOURCE |
static int |
SOURCE_FROM_KINGDOM_TASK |
static java.lang.String |
TITLE_TEXT |
static java.lang.String |
URL |
static java.lang.String |
VERIFIED_PAGE |
构造器和说明 |
---|
H5Fragment() |
限定符和类型 | 方法和说明 |
---|---|
void |
callJSMethod(java.lang.String methodName,
java.lang.String param1,
int param2)
调用JS的方法
|
java.lang.String |
getGuardName() |
java.lang.String |
getGuardUid() |
static android.content.Intent |
getStartIntent(android.content.Context context,
java.lang.String url,
boolean needHideTitleBar) |
void |
hideStandardKeyboard() |
boolean |
isGuardPurchace() |
static boolean |
isNeedReload(java.lang.String url)
是否需要重装
|
void |
onConfigurationChanged(android.content.res.Configuration config) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDestroy() |
void |
onResume() |
boolean |
onTouchMaskView() |
void |
openLetterAct(java.lang.String json) |
void |
setFinish() |
static void |
setStartH5Fragment(UpLiveActivity activity,
java.lang.String url,
boolean needHideTitleBar) |
protected void |
setWebViewBackground() |
void |
showRobPacketDialog(java.lang.String json) |
void |
showShareToolbar(java.lang.String jsonParam) |
void |
tryReloadWebView()
尝试重新加载Web视图
|
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, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onSaveInstanceState, onStart, onStop, onViewCreated, 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 com.app.common.webview.LiveWebView mWebView
public static final int BOTTOM_BTN_TYPE_HIDE
public static final int BOTTOM_BTN_TYPE_FEEDBACK
public static final java.lang.String URL
public static final java.lang.String HIDE_TITLEBAR
public static final java.lang.String SINGLE_BACK
public static final java.lang.String HIDE_CLOSE
public static final java.lang.String TITLE_TEXT
public static final java.lang.String EULA_URL2
public static final java.lang.String VERIFIED_PAGE
public static final java.lang.String FAQ_URL
public static final java.lang.String BOTTOM_BTN_TYPE
public static final java.lang.String EXTRA_PURCHACE
public static final java.lang.String EXTRA_PURCHACE_UID
public static final java.lang.String EXTRA_PURCHACE_NAME
public static final int REQUEST_CODE_GROUP
public static final int FROM_GROUP_KINGDOM_TASK
public static java.lang.String KINGDOM_URL_RELEASE
public static final java.lang.String SOURCE
public static final java.lang.String HOSTINFO
public static final int SOURCE_FROM_KINGDOM_TASK
protected android.os.Handler mBaseHandler
public boolean isGuardPurchace()
public java.lang.String getGuardUid()
public java.lang.String getGuardName()
@Nullable public android.view.View onCreateView(@NonNull android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, @Nullable android.os.Bundle savedInstanceState)
onCreateView
在类中 androidx.fragment.app.Fragment
public void onResume()
onResume
在类中 androidx.fragment.app.Fragment
public void onConfigurationChanged(android.content.res.Configuration config)
onConfigurationChanged
在接口中 android.content.ComponentCallbacks
onConfigurationChanged
在类中 androidx.fragment.app.Fragment
protected void setWebViewBackground()
public void onDestroy()
onDestroy
在类中 androidx.fragment.app.Fragment
public static android.content.Intent getStartIntent(android.content.Context context, java.lang.String url, boolean needHideTitleBar)
public void setFinish()
public static void setStartH5Fragment(UpLiveActivity activity, java.lang.String url, boolean needHideTitleBar)
public void tryReloadWebView()
public static boolean isNeedReload(java.lang.String url)
url
- public boolean onTouchMaskView()
public void showShareToolbar(java.lang.String jsonParam)
public void showRobPacketDialog(java.lang.String json)
public void openLetterAct(java.lang.String json)
public void callJSMethod(java.lang.String methodName, java.lang.String param1, int param2)
methodName
- JS方法名称param1
- 参数1,类型为字符串param2
- 参数2,类型为整型public void hideStandardKeyboard()