PrepareEnvironmentRequest.Builder

public abstract class PrepareEnvironmentRequest.Builder


Builder for PrepareEnvironmentRequest.

Summary

Public methods

abstract PrepareEnvironmentRequest
PrepareEnvironmentRequest.Builder

Clears admin.

PrepareEnvironmentRequest.Builder

If the caller is a device owner or a profile owner, this must be set to the component name of the `android.app.admin.DeviceAdminReceiver` associated with this request.

PrepareEnvironmentRequest.Builder

The roles for which the caller is requesting environment preparation.

Public methods

build

public abstract PrepareEnvironmentRequest build()

clearAdmin

public PrepareEnvironmentRequest.Builder clearAdmin()

Clears admin.

setAdmin

public PrepareEnvironmentRequest.Builder setAdmin(@Nullable ComponentName value)

If the caller is a device owner or a profile owner, this must be set to the component name of the `android.app.admin.DeviceAdminReceiver` associated with this request. Otherwise, this field should be left unset.

setRoles

public PrepareEnvironmentRequest.Builder setRoles(Iterable<Role> value)

The roles for which the caller is requesting environment preparation. The caller must have permission to use these roles. At least one role must be specified.