PrepareEnvironmentRequest

public abstract class PrepareEnvironmentRequest


The request to the PrepareEnvironment API.

Summary

Nested types

public abstract class PrepareEnvironmentRequest.Builder

Builder for PrepareEnvironmentRequest.

Public methods

static PrepareEnvironmentRequest.Builder
@Nullable 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.

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 methods

builder

public static PrepareEnvironmentRequest.Builder builder()

getAdmin

public @Nullable ComponentName getAdmin()

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

public static PrepareEnvironmentRequest getDefaultInstance()

getRoles

public abstract ImmutableList<RolegetRoles()

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

public boolean hasAdmin()

Returns true if admin is set.

toBuilder

public abstract PrepareEnvironmentRequest.Builder toBuilder()