PrepareEnvironmentRequest.Builder

abstract class PrepareEnvironmentRequest.Builder


Builder for PrepareEnvironmentRequest.

Summary

Public functions

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 functions

build

abstract fun build(): PrepareEnvironmentRequest!

clearAdmin

fun clearAdmin(): PrepareEnvironmentRequest.Builder!

Clears admin.

setAdmin

fun setAdmin(value: ComponentName?): 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. Otherwise, this field should be left unset.

setRoles

fun setRoles(value: (Mutable)Iterable<Role!>!): PrepareEnvironmentRequest.Builder!

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.