PrepareEnvironmentRequest

abstract class PrepareEnvironmentRequest


The request to the PrepareEnvironment API.

Summary

Nested types

Builder for PrepareEnvironmentRequest.

Public functions

java-static PrepareEnvironmentRequest.Builder!
ComponentName?

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.

java-static PrepareEnvironmentRequest!
abstract ImmutableList<Role!>!

The roles for which the caller is requesting environment preparation.

Boolean

Returns true if admin is set.

abstract PrepareEnvironmentRequest.Builder!

Public functions

builder

java-static fun builder(): PrepareEnvironmentRequest.Builder!

getAdmin

fun getAdmin(): ComponentName?

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.

getDefaultInstance

java-static fun getDefaultInstance(): PrepareEnvironmentRequest!

getRoles

abstract fun getRoles(): ImmutableList<Role!>!

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.

hasAdmin

fun hasAdmin(): Boolean

Returns true if admin is set.

toBuilder

abstract fun toBuilder(): PrepareEnvironmentRequest.Builder!