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

How to use
getAllSelectedStrings
method
in
android.content.RestrictionEntry

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

origin: googlesamples/android-AppRestrictionSchema

private void updateApprovals(RestrictionEntry entry, Bundle restrictions) {
  String[] approvals;
  if (restrictions == null || !restrictions.containsKey(KEY_APPROVALS)) {
    approvals = entry.getAllSelectedStrings();
  } else {
    approvals = restrictions.getStringArray(KEY_APPROVALS);
  }
  String text;
  if (approvals == null || approvals.length == 0) {
    text = getString(R.string.none);
  } else {
    text = TextUtils.join(", ", approvals);
  }
  mTextApprovals.setText(getString(R.string.approvals_you_have, text));
}
origin: googlesamples/android-AppRestrictionEnforcer

      TextUtils.split(prefs.getString(RESTRICTION_KEY_APPROVALS,
              TextUtils.join(DELIMETER,
                  restriction.getAllSelectedStrings())),
          DELIMETER));
} else if (BUNDLE_SUPPORTED && RESTRICTION_KEY_ITEMS.equals(key)) {
android.contentRestrictionEntrygetAllSelectedStrings

Popular methods of RestrictionEntry

  • getKey
  • getIntValue
  • getSelectedState
  • getSelectedString
  • setTitle
  • <init>
  • getChoiceValues
  • setChoiceEntries
  • setChoiceValues
  • setDescription
  • setType
  • setType

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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