目录

CredentialManager

Class Info

public final class CredentialManager

Main entry for Credentials Management API.

Public Method Summary

Qualifier and Type

Method Name and Description

public static CredentialClient

getCredentialClient(Context context)

Obtains a CredentialClient object.

Public Methods

[h2]getCredentialClient

Method

public static CredentialClient getCredentialClient(Context context)

Obtains a CredentialClient object.

Parameters

Name

Description

context

Context of an Android app.

When the context is an instance of the activity or its subclass, users will be prompted to download and install HMS Core (APK) or Keyring if their devices do not have HMS Core (APK) or Keyring installed. When the content is a context instance instead of an instance of the activity or its subclass, users will not be prompted to download and install HMS Core (APK).

Returns

Type

Description

CredentialClient

CredentialClient object.