com.google.android.gms.auth.api.credentials.CredentialsClient Java Examples
The following examples show how to use
com.google.android.gms.auth.api.credentials.CredentialsClient.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AuthViewModelBase.java From FirebaseUI-Android with Apache License 2.0 | 5 votes |
@VisibleForTesting public void initializeForTesting(FlowParameters parameters, FirebaseAuth auth, CredentialsClient client, PhoneAuthProvider phoneAuth) { setArguments(parameters); mAuth = auth; mCredentialsClient = client; mPhoneAuth = phoneAuth; }
Example #2
Source File: GoogleApiUtils.java From FirebaseUI-Android with Apache License 2.0 | 5 votes |
@NonNull public static CredentialsClient getCredentialsClient(@NonNull Context context) { CredentialsOptions options = new CredentialsOptions.Builder() .forceEnableSaveDialog() .build(); if (context instanceof Activity) { return Credentials.getClient((Activity) context, options); } else { return Credentials.getClient(context, options); } }
Example #3
Source File: AuthViewModelBase.java From FirebaseUI-Android with Apache License 2.0 | 4 votes |
protected CredentialsClient getCredentialsClient() { return mCredentialsClient; }