RestrictionEntry Class

Definition

Applications can expose restrictions for a restricted user on a multiuser device.

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

Remarks

Applications can expose restrictions for a restricted user on a multiuser device. The administrator can configure these restrictions that will then be applied to the restricted user. Each RestrictionsEntry is one configurable restriction. <p/> Any application that chooses to expose such restrictions does so by implementing a receiver that handles the Intent#ACTION_GET_RESTRICTION_ENTRIES action. The receiver then returns a result bundle that contains an entry called "restrictions", whose value is an ArrayList<RestrictionsEntry>.

Java documentation for android.content.RestrictionEntry.

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

RestrictionEntry(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

RestrictionEntry(Parcel)

Constructor for specifying the type and key, with no initial value;

RestrictionEntry(RestrictionEntryType, String)

Constructor for specifying the type and key, with no initial value;

RestrictionEntry(String, Boolean)

Constructor for #TYPE_BOOLEAN type.

RestrictionEntry(String, Int32)

Constructor for #TYPE_INTEGER type.

RestrictionEntry(String, String)

Constructor for #TYPE_CHOICE type.

RestrictionEntry(String, String[])

Constructor for #TYPE_MULTI_SELECT type.

Fields

TypeBoolean
Obsolete.

Restriction of type "bool".

TypeBundle
Obsolete.

Restriction of type "bundle".

TypeBundleArray
Obsolete.

Restriction of type "bundle_array".

TypeChoice
Obsolete.

Restriction of type "choice".

TypeInteger
Obsolete.

Restriction of type "integer".

TypeMultiSelect
Obsolete.

Restriction of type "multi-select".

TypeNull
Obsolete.

Hidden restriction type.

TypeString
Obsolete.

Restriction of type "string".

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Description

Returns the provided user-visible description of the entry, if any. -or- Sets the user-visible description of the entry, as a possible sub-text for the title.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IntValue

Returns the value of the entry as an integer when the type is #TYPE_INTEGER. -or- Sets the integer value of the entry when the type is #TYPE_INTEGER.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Key

This is the unique key for the restriction entry.

PeerReference (Inherited from Object)
SelectedState

Returns the current selected state for an entry of type #TYPE_BOOLEAN. -or- Sets the current selected state for an entry of type #TYPE_BOOLEAN.

SelectedString

Returns the currently selected string value. -or- Sets the string value to use as the selected value for this restriction.

ThresholdClass

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

ThresholdType

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

Title

Returns the user-visible title for the entry, if any. -or- Sets the user-visible title for the entry.

Type

Returns the type for this restriction. -or- Sets the type for this restriction.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CreateBundleArrayEntry(String, RestrictionEntry[])

Creates an entry of type #TYPE_BUNDLE_ARRAY.

CreateBundleEntry(String, RestrictionEntry[])

Creates an entry of type #TYPE_BUNDLE.

DescribeContents()

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

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

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

(Inherited from Object)
GetAllSelectedStrings()

Returns the list of currently selected values.

GetChoiceEntries()

Returns the list of strings, set earlier, that will be presented as choices to the user.

GetChoiceValues()

Returns the list of possible string values set earlier.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetRestrictions()

Returns array of possible restriction entries that this entry may contain.

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)
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)
SetAllSelectedStrings(String[])

Sets the current list of selected values for an entry of type #TYPE_MULTI_SELECT.

SetChoiceEntries(Context, Int32)

Sets a list of strings that will be presented as choices to the user.

SetChoiceEntries(String[])

Sets a list of strings that will be presented as choices to the user.

SetChoiceValues(Context, Int32)

Sets a list of string values that can be selected by the user, similar to #setChoiceValues(String[]).

SetChoiceValues(String[])

Sets a list of string values that can be selected by the user.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetRestrictions(RestrictionEntry[])

Sets an array of possible restriction entries, that this entry may contain.

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

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
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)

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, 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)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to 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