Tabnine Logo
RestrictionEntry.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
android.content.RestrictionEntry
constructor

Best Java code snippets using android.content.RestrictionEntry.<init> (Showing top 3 results out of 315)

origin: commonsguy/cw-omnibus

private RestrictionEntry buildBooleanRestriction(Context ctxt,
                         Bundle current) {
 RestrictionEntry entry=
   new RestrictionEntry(RESTRICTION_BOOLEAN,
              current.getBoolean(RESTRICTION_BOOLEAN,
                       false));
 entry.setTitle(ctxt.getString(R.string.boolean_restriction_title));
 entry.setDescription(ctxt.getString(R.string.boolean_restriction_desc));
 return(entry);
}
origin: commonsguy/cw-omnibus

private RestrictionEntry buildChoiceRestriction(Context ctxt,
                        Bundle current) {
 RestrictionEntry entry=
   new RestrictionEntry(RESTRICTION_CHOICE,
              current.getString(RESTRICTION_CHOICE));
 entry.setTitle(ctxt.getString(R.string.choice_restriction_title));
 entry.setChoiceEntries(ctxt, R.array.display_values);
 entry.setChoiceValues(ctxt, R.array.restriction_values);
 return(entry);
}
origin: commonsguy/cw-omnibus

 private RestrictionEntry buildMultiSelectRestriction(Context ctxt,
                            Bundle current) {
  RestrictionEntry entry=
    new RestrictionEntry(RESTRICTION_MULTI,
               current.getStringArray(RESTRICTION_MULTI));

  entry.setTitle("A Multi-Select Restriction");
  entry.setChoiceEntries(ctxt, R.array.display_values);
  entry.setChoiceValues(ctxt, R.array.restriction_values);

  return(entry);
 }
}
android.contentRestrictionEntry<init>

Popular methods of RestrictionEntry

  • getKey
  • getAllSelectedStrings
  • getIntValue
  • getSelectedState
  • getSelectedString
  • setTitle
  • getChoiceValues
  • setChoiceEntries
  • setChoiceValues
  • setDescription
  • setType
  • setType

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now