Skip to content

Commit 934a72c

Browse files
committed
Add some javadoc to Provider.java
1 parent f5412c3 commit 934a72c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

auth/src/main/java/com/firebase/ui/auth/provider/Provider.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44
import android.content.Context;
55
import android.content.Intent;
66

7+
import com.google.firebase.auth.GoogleAuthProvider;
8+
79
public interface Provider {
810
/** Retrieves the name of the IDP, for display on-screen. */
911
String getName(Context context);
1012

13+
/** Retrieves the id of the IDP, e.g. {@link GoogleAuthProvider#PROVIDER_ID}. */
1114
String getProviderId();
1215

16+
/** Start the login process for the IDP, e.g. show the Google sign-in activity. */
1317
void startLogin(Activity activity);
1418

19+
/**
20+
* Handle the sign result by either finishing the calling activity or sending an {@link
21+
* IdpProvider.IdpCallback} response.
22+
*/
1523
void onActivityResult(int requestCode, int resultCode, Intent data);
1624
}

0 commit comments

Comments
 (0)