Device

public abstract class Device


Information about the device.

Summary

Nested types

public abstract class Device.Builder

Builder for Device.

The type of management mode on the device.

public enum Device.Ownership

Ownership of the managed device.

Public methods

static Device.Builder
abstract ImmutableList<ApplicationReport>

Reports for apps installed on the device.

Metadata

Metadata about application reports.

static Device
DeviceSettings

Device settings information.

Metadata

Metadata about device settings.

HardwareInfo

Detailed information about the device hardware.

Metadata

Metadata about hardware info.

abstract String

The package name of the app that manages the device.

Metadata

Metadata about management app package name.

abstract Device.ManagementMode

The type of management mode on the device.

Metadata

Metadata about management mode.

NetworkInfo

Device network information.

Metadata

Metadata about network info.

abstract Device.Ownership

Ownership of the managed device.

Metadata

Metadata about ownership.

SoftwareInfo

Detailed information about the device software.

Metadata

Metadata about software info.

boolean

Returns true if applicationReportsMetadata is set.

boolean

Returns true if deviceSettings is set.

boolean

Returns true if deviceSettingsMetadata is set.

boolean

Returns true if hardwareInfo is set.

boolean

Returns true if hardwareInfoMetadata is set.

boolean

Returns true if managementAppPackageNameMetadata is set.

boolean

Returns true if managementModeMetadata is set.

boolean

Returns true if networkInfo is set.

boolean

Returns true if networkInfoMetadata is set.

boolean

Returns true if ownershipMetadata is set.

boolean

Returns true if softwareInfo is set.

boolean

Returns true if softwareInfoMetadata is set.

abstract Device.Builder

Public methods

builder

public static Device.Builder builder()

getApplicationReports

public abstract ImmutableList<ApplicationReportgetApplicationReports()

Reports for apps installed on the device.

Note: This returns all apps to extensibility apps on managed devices, otherwise this only returns critical apps.

getApplicationReportsMetadata

public Metadata getApplicationReportsMetadata()

Metadata about application reports.

getDefaultInstance

public static Device getDefaultInstance()

getDeviceSettings

public DeviceSettings getDeviceSettings()

Device settings information.

getDeviceSettingsMetadata

public Metadata getDeviceSettingsMetadata()

Metadata about device settings.

getHardwareInfo

public HardwareInfo getHardwareInfo()

Detailed information about the device hardware.

getHardwareInfoMetadata

public Metadata getHardwareInfoMetadata()

Metadata about hardware info.

getManagementAppPackageName

public abstract String getManagementAppPackageName()

The package name of the app that manages the device.

getManagementAppPackageNameMetadata

public Metadata getManagementAppPackageNameMetadata()

Metadata about management app package name.

getManagementMode

public abstract Device.ManagementMode getManagementMode()

The type of management mode on the device.

getManagementModeMetadata

public Metadata getManagementModeMetadata()

Metadata about management mode.

getNetworkInfo

public NetworkInfo getNetworkInfo()

Device network information. This requires the caller to have the ACCESS_NETWORK_STATE permission.

getNetworkInfoMetadata

public Metadata getNetworkInfoMetadata()

Metadata about network info.

getOwnership

public abstract Device.Ownership getOwnership()

Ownership of the managed device.

getOwnershipMetadata

public Metadata getOwnershipMetadata()

Metadata about ownership.

getSoftwareInfo

public SoftwareInfo getSoftwareInfo()

Detailed information about the device software.

getSoftwareInfoMetadata

public Metadata getSoftwareInfoMetadata()

Metadata about software info.

hasApplicationReportsMetadata

public boolean hasApplicationReportsMetadata()

Returns true if applicationReportsMetadata is set.

hasDeviceSettings

public boolean hasDeviceSettings()

Returns true if deviceSettings is set.

hasDeviceSettingsMetadata

public boolean hasDeviceSettingsMetadata()

Returns true if deviceSettingsMetadata is set.

hasHardwareInfo

public boolean hasHardwareInfo()

Returns true if hardwareInfo is set.

hasHardwareInfoMetadata

public boolean hasHardwareInfoMetadata()

Returns true if hardwareInfoMetadata is set.

hasManagementAppPackageNameMetadata

public boolean hasManagementAppPackageNameMetadata()

Returns true if managementAppPackageNameMetadata is set.

hasManagementModeMetadata

public boolean hasManagementModeMetadata()

Returns true if managementModeMetadata is set.

hasNetworkInfo

public boolean hasNetworkInfo()

Returns true if networkInfo is set.

hasNetworkInfoMetadata

public boolean hasNetworkInfoMetadata()

Returns true if networkInfoMetadata is set.

hasOwnershipMetadata

public boolean hasOwnershipMetadata()

Returns true if ownershipMetadata is set.

hasSoftwareInfo

public boolean hasSoftwareInfo()

Returns true if softwareInfo is set.

hasSoftwareInfoMetadata

public boolean hasSoftwareInfoMetadata()

Returns true if softwareInfoMetadata is set.

toBuilder

public abstract Device.Builder toBuilder()