APISonar


co.chatsdk.core.types.AccountDetails.Type.Google

> co > chatsdk > core > types > AccountDetails > Type > Google
co APIs chatsdk APIs core APIs types APIs AccountDetails APIs Type APIs Google APIs

Example 1
public FirebaseSocialLoginHandler (Context context) {

        if(accountTypeEnabled(AccountDetails.Type.Google)) {
            gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                    .requestIdToken(ChatSDK.config().googleWebClientKey)
                    .requestEmail()
                    .build();
        }
        if(accountTypeEnabled(AccountDetails.Type.Twitter)) {
            TwitterAuthConfig authConfig = new TwitterAuthConfig(ChatSDK.config().twitterKey, ChatSDK.config().twitterSecret);
            TwitterConfig config = new TwitterConfig.Builder(context).twitterAuthConfig(authConfig).build();
            Twitter.initialize(config);
        }
    }