-
- All Implemented Interfaces:
-
android.arch.lifecycle.LifecycleOwner
,android.arch.lifecycle.ViewModelStoreOwner
,android.content.ComponentCallbacks
,android.view.View.OnCreateContextMenuListener
,com.pointrlabs.core.management.ConfigurationManager.Listener
,com.pointrlabs.core.management.DataManager.Listener
,com.pointrlabs.core.management.PTRListener
,com.pointrlabs.core.util.BottomSheetView
public final class SearchFragment extends PTRFragment implements BottomSheetView, ConfigurationManager.Listener, DataManager.Listener
-
-
Field Summary
Fields Modifier and Type Field Description private WeakReference<PTRMapWidgetFragment>
ptrMapWidget
private BottomSheet
bottomSheet
private Boolean
isPoiCarouselViewAnimatedOnce
private Boolean
didSetLayoutParams
private final PTRSearchLayoutState
layoutState
private final Integer
mState
private final Bundle
mSavedFragmentState
private final SparseArray<Parcelable>
mSavedViewState
private final Boolean
mSavedUserVisibleHint
private final Integer
mIndex
private final String
mWho
private final Bundle
mArguments
private final Fragment
mTarget
private final Integer
mTargetIndex
private final Integer
mTargetRequestCode
private final Boolean
mAdded
private final Boolean
mRemoving
private final Boolean
mFromLayout
private final Boolean
mInLayout
private final Boolean
mRestored
private final Boolean
mPerformedCreateView
private final Integer
mBackStackNesting
private final FragmentManagerImpl
mFragmentManager
private final FragmentHostCallback<Object>
mHost
private final FragmentManagerImpl
mChildFragmentManager
private final FragmentManagerNonConfig
mChildNonConfig
private final ViewModelStore
mViewModelStore
private final Fragment
mParentFragment
private final Integer
mFragmentId
private final Integer
mContainerId
private final String
mTag
private final Boolean
mHidden
private final Boolean
mDetached
private final Boolean
mRetainInstance
private final Boolean
mRetaining
private final Boolean
mHasMenu
private final Boolean
mMenuVisible
private final Boolean
mCalled
private final ViewGroup
mContainer
private final View
mView
private final View
mInnerView
private final Boolean
mDeferStart
private final Boolean
mUserVisibleHint
private final Fragment.AnimationInfo
mAnimationInfo
private final Boolean
mIsNewlyAdded
private final Boolean
mHiddenChanged
private final Float
mPostponedAlpha
private final LayoutInflater
mLayoutInflater
private final Boolean
mIsCreated
private final LifecycleRegistry
mLifecycleRegistry
private final LifecycleRegistry
mViewLifecycleRegistry
private final LifecycleOwner
mViewLifecycleOwner
private final MutableLiveData<LifecycleOwner>
mViewLifecycleOwnerLiveData
-
Constructor Summary
Constructors Constructor Description SearchFragment()
-
Method Summary
-
Methods inherited from class com.pointrlabs.core.map.views.search.SearchFragment
animatePeekHeight, applyBottomSheetBehavior, getColor, hideKeyboard, initBottomSheet, isCollapsing, isExpanded, isExpandedOrPeeking, isExpanding, onActivityCreated, onDataManagerBeginProcessingDataForSite, onDataManagerCompleteAllForSite, onDataManagerReadyForSite, onDataManagerStartDataManagementForSite, onResume, onStop, showKeyboard, toast, toast, toggleExpand
-
Methods inherited from class com.pointrlabs.core.map.views.helper_views.PTRFragment
callStartTransitionListener, dump, equals, findFragmentByWho, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getAnimatingAway, getAnimator, getArguments, getChildFragmentManager, getContext, getEnterTransition, getEnterTransitionCallback, getExitTransition, getExitTransitionCallback, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getNextAnim, getNextTransition, getNextTransitionStyle, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getStateAfterAnimating, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, initState, instantiateChildFragmentManager, isAdded, isDetached, isHidden, isHideReplaced, isInBackStack, isInLayout, isMenuVisible, isPostponed, isRemoving, isResumed, isStateSaved, isVisible, noteStateNotSaved, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onSaveInstanceState, onStart, onViewStateRestored, peekChildFragmentManager, performActivityCreated, performConfigurationChanged, performContextItemSelected, performCreate, performCreateOptionsMenu, performCreateView, performDestroy, performDestroyView, performDetach, performGetLayoutInflater, performLowMemory, performMultiWindowModeChanged, performOptionsItemSelected, performOptionsMenuClosed, performPause, performPictureInPictureModeChanged, performPrepareOptionsMenu, performResume, performSaveInstanceState, performStart, performStop, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, restoreChildFragmentState, restoreViewState, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setAnimatingAway, setAnimator, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setHideReplaced, setIndex, setInitialSavedState, setMenuVisibility, setNextAnim, setNextTransition, setOnStartEnterTransitionListener, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setStateAfterAnimating, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPtrMapWidget
final WeakReference<PTRMapWidgetFragment> getPtrMapWidget()
-
setPtrMapWidget
final Unit setPtrMapWidget(WeakReference<PTRMapWidgetFragment> ptrMapWidget)
-
getBottomSheet
BottomSheet getBottomSheet()
-
setBottomSheet
Unit setBottomSheet(BottomSheet bottomSheet)
-
getIsPoiCarouselViewAnimatedOnce
final Boolean getIsPoiCarouselViewAnimatedOnce()
-
setIsPoiCarouselViewAnimatedOnce
final Unit setIsPoiCarouselViewAnimatedOnce(Boolean isPoiCarouselViewAnimatedOnce)
-
getDidSetLayoutParams
final Boolean getDidSetLayoutParams()
-
setDidSetLayoutParams
final Unit setDidSetLayoutParams(Boolean didSetLayoutParams)
-
getLayoutState
final PTRSearchLayoutState getLayoutState()
-
onCreateView
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onViewCreated
Unit onViewCreated(View view, Bundle savedInstanceState)
-
onCategoryClicked
final Unit onCategoryClicked(PoiCategory category)
-
onDestroyView
Unit onDestroyView()
-
onBottomSheetSlide
Unit onBottomSheetSlide(View bottomSheetView, Float slideOffset)
-
onBottomSheetStateChanged
Unit onBottomSheetStateChanged(Boolean expanded)
-
clearSearchFutures
final Unit clearSearchFutures()
-
onSearchInput
final Unit onSearchInput(String searchInput, Long delayMillis)
-
onAnimationUpdate
Unit onAnimationUpdate(Integer progress, Integer finalValue)
-
onAnimationEnd
Unit onAnimationEnd(Integer peakHight)
-
handleLevelChange
final Unit handleLevelChange(Level level)
-
onConfigurationUpdate
Unit onConfigurationUpdate()
Configuration updated
-
onDataManagerEndProcessingDataForSite
Unit onDataManagerEndProcessingDataForSite(Site site, DataType dataType, Boolean isOnlineData, Boolean isSuccessful, List<ErrorMessage> errors)
Notifies listeners when a specific type of data (either offline or online) has completed processing (whether successful or not)
- Parameters:
site
- site where this data belongs Will never be null, if not found by SiteManager it will only have internal idsdataType
- Type of dataisOnlineData
- Whether data is from server (online) or local bundle (offline)isSuccessful
- Whether update has succeeeded or noterrors
- A list of error message (if any)
-
-
-
-