public interface DeviceSetupProvider


Defines an interface for system components that handle device setup APIs.

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

Usage:

  1. System components implement this interface.

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

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

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 DeviceSetupProvider.

Public methods

abstract IBinder

Returns the IBinder stub implementation.

Constants

DEVICE_SETUP_PROVIDER_KEY

Added in 1.0.0-alpha02
default static final @NonNull String DEVICE_SETUP_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 DeviceSetupProvider.

Public methods

getStubImplementation

Added in 1.0.0-alpha02
abstract IBinder getStubImplementation(@NonNull DeviceSetupService service)

Returns the IBinder stub implementation.

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

Parameters
@NonNull DeviceSetupService service

The instance of DeviceSetupService to interact with.