Class SignupFacilitySecondaryFragment

java.lang.Object
androidx.fragment.app.Fragment
com.syzygy.events.ui.signup.SignupFacilitySecondaryFragment
All Implemented Interfaces:
android.content.ComponentCallbacks, android.view.View.OnCreateContextMenuListener, androidx.activity.result.ActivityResultCaller, androidx.lifecycle.HasDefaultViewModelProviderFactory, androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModelStoreOwner, androidx.savedstate.SavedStateRegistryOwner, com.google.android.gms.maps.GoogleMap.OnMapClickListener, com.google.android.gms.maps.OnMapReadyCallback

public class SignupFacilitySecondaryFragment extends androidx.fragment.app.Fragment implements com.google.android.gms.maps.OnMapReadyCallback, com.google.android.gms.maps.GoogleMap.OnMapClickListener
The fragment to create a new facility
  • Nested Class Summary

    Nested classes/interfaces inherited from class androidx.fragment.app.Fragment

    androidx.fragment.app.Fragment.InstantiationException, androidx.fragment.app.Fragment.SavedState
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private com.syzygy.events.databinding.FragSignupOrganizerBinding
     
    private android.net.Uri
    The current selected image
    private com.google.android.gms.maps.GoogleMap
    The map
    private com.google.android.gms.maps.model.Marker
    The marker of the location

    Fields inherited from class androidx.fragment.app.Fragment

    mPreviousWho
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    Queries the user for an image
    android.view.View
    onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
     
    void
     
    void
    onMapClick(com.google.android.gms.maps.model.LatLng latLng)
     
    void
    onMapReady(com.google.android.gms.maps.GoogleMap map)
     
    void
    onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)
     
    private void
    setImage(android.net.Uri uri)
    Sets the current image to display.
    private void
    Validates the information.

    Methods inherited from class androidx.fragment.app.Fragment

    dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, 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, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, 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, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • binding

      private com.syzygy.events.databinding.FragSignupOrganizerBinding binding
    • image

      private android.net.Uri image
      The current selected image
    • marker

      private com.google.android.gms.maps.model.Marker marker
      The marker of the location
    • map

      private com.google.android.gms.maps.GoogleMap map
      The map
  • Constructor Details

    • SignupFacilitySecondaryFragment

      public SignupFacilitySecondaryFragment()
  • Method Details

    • onCreateView

      public android.view.View onCreateView(@NonNull android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
      Overrides:
      onCreateView in class androidx.fragment.app.Fragment
    • onViewCreated

      public void onViewCreated(@NonNull android.view.View view, @Nullable android.os.Bundle savedInstanceState)
      Overrides:
      onViewCreated in class androidx.fragment.app.Fragment
    • submitData

      private void submitData()
      Validates the information. If valid, creates the facility and navigates to the profile
    • choosePhoto

      private void choosePhoto()
      Queries the user for an image
    • setImage

      private void setImage(android.net.Uri uri)
      Sets the current image to display. If null, removes the image
      Parameters:
      uri - The image
    • onMapReady

      public void onMapReady(@NonNull com.google.android.gms.maps.GoogleMap map)
      Specified by:
      onMapReady in interface com.google.android.gms.maps.OnMapReadyCallback
    • onMapClick

      public void onMapClick(@NonNull com.google.android.gms.maps.model.LatLng latLng)
      Specified by:
      onMapClick in interface com.google.android.gms.maps.GoogleMap.OnMapClickListener
    • onDestroyView

      public void onDestroyView()
      Overrides:
      onDestroyView in class androidx.fragment.app.Fragment