0

After peeking at firebase goolge api i had a curiosity, in what place of the lifecycle in an applicaiton invoking the google api within the fragments would it be appropriate to call signOut()? i'm currently reviwing this super amazing lifecycle and noticed that onStop() for a fragment has an 'app process kill' state. it's because of this that i chose to put the signOut listener in the onCreate, am i wrong?

EvOlaNdLuPiZ
  • 600
  • 1
  • 4
  • 21

1 Answers1

0

After some research I found it's best to use an interface for signingOut().

public interface SettingsIf{
 void logOut();
}

public class A implements SettingsIf{
 void someFunction(){
  logOut();
 }
}
EvOlaNdLuPiZ
  • 600
  • 1
  • 4
  • 21