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

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

Public functions

IBinder?

Returns the IBinder stub implementation.

Constants

DEVICE_SETUP_PROVIDER_KEY

Added in 1.0.0-alpha02
const val DEVICE_SETUP_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 DeviceSetupProvider.

Public functions

getStubImplementation

Added in 1.0.0-alpha02
fun getStubImplementation(service: DeviceSetupService): IBinder?

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

The instance of DeviceSetupService to interact with.