Android中的ApicClient是什么?

Android中的ApicClient是什么?,android,sms,Android,Sms,上面代码中的apiClient是什么?我正在尝试用Android做短信验证。在哪里可以获得apiClient?apiClient是GoogleAppClient对象,用于访问Google Play services库中提供的Google API(如Google登录、游戏和驱动器)。您可以创建如下所示的对象 private void requestHint() { HintRequest hintRequest = new HintRequest.Builder() .setPhon

上面代码中的apiClient是什么?我正在尝试用Android做短信验证。在哪里可以获得apiClient?

apiClient是
GoogleAppClient
对象,用于访问Google Play services库中提供的Google API(如Google登录、游戏和驱动器)。您可以创建如下所示的对象

private void requestHint() {
HintRequest hintRequest = new HintRequest.Builder()
       .setPhoneNumberIdentifierSupported(true)
       .build();

PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent(
        apiClient, hintRequest);
startIntentSenderForResult(intent.getIntentSender(),
        RESOLVE_HINT, null, 0, 0, 0);
}

什么是
GoogleApiHelper
,是否存在依赖关系?
GoogleApiClient apiClient = new GoogleApiClient.Builder(getContext())
           .addApi(Auth.CREDENTIALS_API).enableAutoManage(getActivity(), GoogleApiHelper
           .getSafeAutoManageId(), new GoogleApiClient.OnConnectionFailedListener() {
                     @Override
                     public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
                         Log.e(TAG, "Client connection failed: " + connectionResult.getErrorMessage());
                     }
         }).build();