Class ViewYoutubeFragment
- java.lang.Object
 - 
- androidx.fragment.app.Fragment
 - 
- com.cheetahdigital.uikit.architecture.mvp.MvpFragmentView<V,P>
 - 
- com.cheetahdigital.challenges.ui.responses.base.ChallengeResponseFragment<V,P>
 - 
- com.cheetahdigital.challenges.ui.responses.viewcontent.base.ViewContentBaseFragment
 - 
- com.cheetahdigital.challenges.ui.responses.viewcontent.ViewYoutubeFragment
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 android.content.ComponentCallbacks,android.view.View.OnClickListener,android.view.View.OnCreateContextMenuListener,androidx.activity.result.ActivityResultCaller,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner,ChallengeResponseView,ViewContentView,com.cheetahdigital.corekit.sdk.analytics.AnalyticsManager.AnalyticsScreen,com.cheetahdigital.uikit.architecture.mvp.MvpView
public class ViewYoutubeFragment extends ViewContentBaseFragment
The response screen for View YoutubeChallengeCan receive the following intent extras:- CHALLENGE_YOUTUBE_FULLSCREEN - the flag for requesting YouTube orientation to landscape
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHALLENGE_YOUTUBE_FULLSCREEN- 
Fields inherited from class com.cheetahdigital.challenges.ui.responses.base.ChallengeResponseFragment
CHALLENGE_ENABLE_RATING, CHALLENGE_FROM_DIALOG, CHALLENGE_ID_KEY, CHALLENGE_KEY, mProgressDialog, mShowAsAlert, mSubmitButton, RESPONDABLE_KEY, RESPONSE_ID_KEY, TAG 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ViewYoutubeFragment() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetContentLayoutId()Provide the Content Layout ID which is of a Layout Resource Reference of AndroidvoidloadContent(java.lang.String url)Notifies the view to load the contentvoidonCreate(android.os.Bundle savedInstanceState)voidonDestroyView()voidonSaveInstanceState(android.os.Bundle outState)voidonViewCreated(android.view.View view, android.os.Bundle savedInstanceState)- 
Methods inherited from class com.cheetahdigital.challenges.ui.responses.viewcontent.base.ViewContentBaseFragment
confirmExit, createPresenter, onActivityCreated, onActivityResult, onBackPressed, showSubmitButton, showTakeQuizDialog, startQuiz, submitChallenge 
- 
Methods inherited from class com.cheetahdigital.challenges.ui.responses.base.ChallengeResponseFragment
getChallenge, getChallengeIdentifier, getResponseIdentifier, getRewardString, isAlert, onChallengeRespondSuccess, onClick, sendRespondSuccessFragmentResult, showErrorMessage, showLoading, showReward 
- 
Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpFragmentView
captureSharedElementValues, getPresenter, getScreenName, getSharedElementViews, initSharedElementValues, isSharedAnimationEnabled, onAttach, onCreateView, startActivity, startActivityForResult 
- 
Methods inherited from class androidx.fragment.app.Fragment
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, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onStart, onStop, 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, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface com.cheetahdigital.challenges.ui.responses.base.ChallengeResponseView
onChallengeRespondSuccess, showErrorMessage, showLoading, showReward 
 - 
 
 - 
 
- 
- 
Method Detail
- 
onCreate
public void onCreate(@Nullable android.os.Bundle savedInstanceState)- Overrides:
 onCreatein classChallengeResponseFragment
 
- 
getContentLayoutId
protected int getContentLayoutId()
Description copied from class:com.cheetahdigital.uikit.architecture.mvp.MvpFragmentViewProvide the Content Layout ID which is of a Layout Resource Reference of Android- Specified by:
 getContentLayoutIdin classcom.cheetahdigital.uikit.architecture.mvp.MvpFragmentView- Returns:
 - id of the content layout
 
 
- 
onViewCreated
public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)- Overrides:
 onViewCreatedin classViewContentBaseFragment
 
- 
loadContent
public void loadContent(java.lang.String url)
Description copied from interface:ViewContentViewNotifies the view to load the content- Parameters:
 url- content url
 
- 
onSaveInstanceState
public void onSaveInstanceState(@NonNull android.os.Bundle outState)- Overrides:
 onSaveInstanceStatein classandroidx.fragment.app.Fragment
 
- 
onDestroyView
public void onDestroyView()
- Overrides:
 onDestroyViewin classcom.cheetahdigital.uikit.architecture.mvp.MvpFragmentView
 
 - 
 
 -