Search in sources :

Example 1 with OnConnectionFailedListener

use of com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener in project WordPress-Android by wordpress-mobile.

the class SmartLockHelper method initSmartLockForPasswords.

public void initSmartLockForPasswords() {
    FragmentActivity activity = getActivityAndCheckAvailability();
    if (activity == null) {
        return;
    }
    mCredentialsClient = new GoogleApiClient.Builder(activity).addConnectionCallbacks((ConnectionCallbacks) activity).enableAutoManage(activity, (OnConnectionFailedListener) activity).addApi(Auth.CREDENTIALS_API).build();
}
Also used : FragmentActivity(android.support.v4.app.FragmentActivity) GoogleApiClient(com.google.android.gms.common.api.GoogleApiClient) OnConnectionFailedListener(com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener)

Aggregations

FragmentActivity (android.support.v4.app.FragmentActivity)1 GoogleApiClient (com.google.android.gms.common.api.GoogleApiClient)1 OnConnectionFailedListener (com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener)1