Share via


DeviceAdminInfo Class

Definition

This class is used to specify meta information of a device administrator component.

[Android.Runtime.Register("android/app/admin/DeviceAdminInfo", DoNotGenerateAcw=true)]
public sealed class DeviceAdminInfo : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/app/admin/DeviceAdminInfo", DoNotGenerateAcw=true)>]
type DeviceAdminInfo = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
DeviceAdminInfo
Attributes
Implements

Remarks

This class is used to specify meta information of a device administrator component.

Java documentation for android.app.admin.DeviceAdminInfo.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

DeviceAdminInfo(Context, ResolveInfo)

Constructor.

Fields

HeadlessDeviceOwnerModeAffiliated
Obsolete.

Value for #getHeadlessDeviceOwnerMode which indicates that this DPC should be provisioned into "affiliated" mode when on a Headless System User Mode device.

HeadlessDeviceOwnerModeUnsupported
Obsolete.

Value for #getHeadlessDeviceOwnerMode which indicates that this DPC should not be provisioned into Device Owner mode on a Headless System User Mode device.

UsesEncryptedStorage
Obsolete.

A type of policy that this device admin can use: require encryption of stored data.

UsesPolicyDisableCamera
Obsolete.

A type of policy that this device admin can use: disables use of all device cameras.

UsesPolicyDisableKeyguardFeatures
Obsolete.

A type of policy that this device admin can use: disables use of keyguard features.

UsesPolicyExpirePassword
Obsolete.

A type of policy that this device admin can use: force the user to change their password after an administrator-defined time limit.

UsesPolicyForceLock
Obsolete.

A type of policy that this device admin can use: able to force the device to lock viaDevicePolicyManager#lockNow or limit the maximum lock timeout for the device via DevicePolicyManager#setMaximumTimeToLock.

UsesPolicyLimitPassword
Obsolete.

A type of policy that this device admin can use: limit the passwords that the user can select, via DevicePolicyManager#setPasswordQuality and DevicePolicyManager#setPasswordMinimumLength.

UsesPolicyResetPassword
Obsolete.

A type of policy that this device admin can use: able to reset the user's password via DevicePolicyManager#resetPassword.

UsesPolicyWatchLogin
Obsolete.

A type of policy that this device admin can use: able to watch login attempts from the user, via DeviceAdminReceiver#ACTION_PASSWORD_FAILED, DeviceAdminReceiver#ACTION_PASSWORD_SUCCEEDED, and DevicePolicyManager#getCurrentFailedPasswordAttempts.

UsesPolicyWipeData
Obsolete.

A type of policy that this device admin can use: able to factory reset the device, erasing all of the user's data, via DevicePolicyManager#wipeData.

Properties

ActivityInfo

Return the raw information about the receiver implementing this device admin.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Component

Return the component of the receiver that implements this device admin.

Creator

Used to make this class parcelable.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HeadlessDeviceOwnerMode

Returns the mode this DeviceAdmin wishes to use if provisioned as a Device Owner on a headless system user mode device.

IsVisible

Returns whether this device admin would like to be visible to the user, even when it is not enabled.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PackageName

Return the .

PeerReference (Inherited from Object)
ReceiverName

Return the class name of the receiver component that implements this device admin.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Dump(IPrinter, String)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetTagForPolicy(DeviceAdminUses)

Return the XML tag name for the given policy identifier.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
LoadDescription(PackageManager)

Load user-visible description associated with this device admin.

LoadDescriptionFormatted(PackageManager)

Load user-visible description associated with this device admin.

LoadIcon(PackageManager)

Load the user-displayed icon for this device admin.

LoadLabel(PackageManager)

Load the user-displayed label for this device admin.

LoadLabelFormatted(PackageManager)

Load the user-displayed label for this device admin.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SupportsTransferOwnership()

Return true if this administrator can be a target in an ownership transfer.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
UsesPolicy(DeviceAdminUses)

Return true if the device admin has requested that it be able to use the given policy control.

Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Used to package this object into a Parcel.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to