DisableAccountFragment - ShutUpPaulo/TecProg_2016-01 GitHub Wiki

Class DisableAccountFragment

1. Class Attributes

  • No other attributes

2. Methods

2.1. DisableAccountFragment

2.1.1. Description:

  • Required constructor to instantiate a fragment object

2.1.2. Arguments:

  • No arguments

2.1.3. Return:

  • Type: Constructor

2.1.4. Variables:

  • No other variables

2.2. onCreateView

2.2.1. Description:

  • Creates and returns the view hierarchy associated with the fragment

2.2.2. Arguments:

  • LayoutInflater inflater: Object used to inflate any views in the fragment
  • ViewGroup container: If non-null, is the parent view that the fragment should be attached to
  • Bundle savedInstanceState: If non-null, this fragment is being re-constructed from a previous saved state as given here

2.2.3. Return:

  • Type: View
  • Description: View of the current fragment

2.2.4. Variables:

Name Type Description Default Value
view View Object of View that receives the Fragment view through the XML * * *
yesButton Button Button which disables the account of the user logged in * * *
noButton Button Button which cancels disabling the user * * *

2.3. onClick

2.3.1. Description:

  • Disable the account when the user clicks on the yes button or comes back to the previous

2.3.2. Return:

  • Type: Void

2.3.3. Arguments:

  • View view: Current clicked view

2.3.4. Variables:

Name Type Description Default Value
activity FragmentActivity Gets an instance of the current activity * * *
fragmentTransaction FragmentTransaction Allows the current fragment to be replaced by the fragment to be opened * * *
fragmentManager FragmentManager Interface for interacting with Fragment objects inside of an Activity * * *
homePageContext Context Gets an instance of the interface to global information about the application environment * * *