public interface CredentialEventsProvider


Defines an interface for system components that handle credential event propagation APIs.

System components implement this interface to return a stub IBinder to be used by CredentialProviderEventsService.

Usage:

  1. System components implement this interface.

  2. When binding to CredentialProviderEventsService, the service instantiates and returns the implemented class based on the EVENTS_PROVIDER_KEY extra in the intent.

  3. The returned IBinder allows the feature provider to execute custom logic before calling the public endpoints of CredentialProviderEventsService.

This mechanism enables system components to manage their own event propagation to credential providers.

Summary

Constants

default static final @NonNull String

The key for the extra in the intent used to bind to the credential provider's service, specifying the class name that implements CredentialEventsProvider.

Public methods

abstract IBinder

Returns the IBinder stub implementation.

Constants

EVENTS_SERVICE_PROVIDER_KEY

Added in 1.0.0-alpha01
default static final @NonNull String EVENTS_SERVICE_PROVIDER_KEY

The key for the extra in the intent used to bind to the credential provider's service, specifying the class name that implements CredentialEventsProvider.

Public methods

getStubImplementation

Added in 1.0.0-alpha01
abstract IBinder getStubImplementation(@NonNull CredentialProviderEventsService service)

Returns the IBinder stub implementation.

This stub is invoked by the feature provider after binding to CredentialProviderEventsService. It allows the feature provider to execute custom logic before interacting with the service.

Parameters
@NonNull CredentialProviderEventsService service

The instance of CredentialProviderEventsService to interact with.