Java android.content RestrictionEntry fields, constructors, methods, implement or subclass

Example usage for Java android.content RestrictionEntry fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content RestrictionEntry.

The text is from its open source code.

Field

intTYPE_NULL
Hidden restriction type.
intTYPE_BOOLEAN
Restriction of type "bool".
intTYPE_CHOICE
Restriction of type "choice".
intTYPE_CHOICE_LEVEL
Internal restriction type.
intTYPE_MULTI_SELECT
Restriction of type "multi-select".

Method

String[]getAllSelectedStrings()
Returns the list of currently selected values.
String[]getChoiceEntries()
Returns the list of strings, set earlier, that will be presented as choices to the user.
String[]getChoiceValues()
Returns the list of possible string values set earlier.
StringgetDescription()
Returns the provided user-visible description of the entry, if any.
intgetIntValue()
Returns the value of the entry as an integer when the type is #TYPE_INTEGER .
StringgetKey()
This is the unique key for the restriction entry.
booleangetSelectedState()
Returns the current selected state for an entry of type #TYPE_BOOLEAN .
StringgetSelectedString()
Returns the currently selected string value.
StringgetTitle()
Returns the user-visible title for the entry, if any.
intgetType()
Returns the type for this restriction.
voidsetAllSelectedStrings(String[] allSelectedStrings)
Sets the current list of selected values for an entry of type #TYPE_MULTI_SELECT .
voidsetSelectedState(boolean state)
Sets the current selected state for an entry of type #TYPE_BOOLEAN .
voidsetSelectedString(String selectedString)
Sets the string value to use as the selected value for this restriction.