Tabnine Logo
RestrictionEntry.getIntValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getIntValue
method
in
android.content.RestrictionEntry

Best Java code snippets using android.content.RestrictionEntry.getIntValue (Showing top 2 results out of 315)

origin: googlesamples/android-AppRestrictionSchema

private void updateNumber(RestrictionEntry entry, Bundle restrictions) {
  int number;
  if (restrictions == null || !restrictions.containsKey(KEY_NUMBER)) {
    number = entry.getIntValue();
  } else {
    number = restrictions.getInt(KEY_NUMBER);
  }
  mTextNumber.setText(getString(R.string.your_number, number));
}
origin: googlesamples/android-AppRestrictionEnforcer

} else if (RESTRICTION_KEY_NUMBER.equals(key)) {
  updateNumber(prefs.getInt(RESTRICTION_KEY_NUMBER,
      restriction.getIntValue()));
} else if (RESTRICTION_KEY_RANK.equals(key)) {
  updateRank(activity, restriction.getChoiceValues(),
android.contentRestrictionEntrygetIntValue

Popular methods of RestrictionEntry

  • getKey
  • getAllSelectedStrings
  • getSelectedState
  • getSelectedString
  • setTitle
  • <init>
  • 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
  • Github Copilot alternatives
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