DeviceSetupProvider
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:
-
System components implement this interface.
-
When binding to
DeviceSetupService, the service instantiates and returns the implemented class based on theDEVICE_SETUP_PROVIDER_KEYextra in the intent. -
The returned
IBinderallows the feature provider to execute custom logic before calling the public endpoints ofDeviceSetupService.
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 |
Public methods |
|
|---|---|
abstract IBinder |
getStubImplementation(@NonNull DeviceSetupService service)Returns the |
Constants
DEVICE_SETUP_PROVIDER_KEY
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
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 |