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

const 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 functions

IBinder?

Returns the IBinder stub implementation.

Constants

EVENTS_SERVICE_PROVIDER_KEY

Added in 1.0.0-alpha01
const val EVENTS_SERVICE_PROVIDER_KEYString

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 functions

getStubImplementation

Added in 1.0.0-alpha01
fun getStubImplementation(service: CredentialProviderEventsService): IBinder?

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
service: CredentialProviderEventsService

The instance of CredentialProviderEventsService to interact with.