Langue

RestrictionsManager.ConvertRestrictionsToBundle Méthode

Définition

Convertit une liste de restrictions en bundle correspondant, à l’aide du mappage suivant : <table><tr><th>RestrictionEntry</th th><>Bundle</th></tr><tr><td>RestrictionEntry#TYPE_BOOLEAN</td><>Bundle#putBoolean</td></tr tr tr><><td>RestrictionEntry#TYPE_CHOICE,RestrictionEntry#TYPE_MULTI_SELECT< /td><td>Bundle#putStringArray</td></tr><><td>RestrictionEntry#TYPE_INTEGER<><>Bundle#putInt</td/td></tr tr td/tr tr><><>RestrictionEntry#TYPE_STRING</td><td>Bundle#putString</td></tr tr><><tr td>RestrictionEntry#TYPE_BUNDLE</td/td><>Bundle#putBundle</tr>< tr><><td>RestrictionEntry#TYPE_BUNDLE_ARRAY</td><>Bundle#putParcelableArray</td/td></tr/tr/tr></table>

[Android.Runtime.Register("convertRestrictionsToBundle", "(Ljava/util/List;)Landroid/os/Bundle;", "", ApiSince=23)]
public static Android.OS.Bundle? ConvertRestrictionsToBundle(System.Collections.Generic.IList<Android.Content.RestrictionEntry>? entries);
[<Android.Runtime.Register("convertRestrictionsToBundle", "(Ljava/util/List;)Landroid/os/Bundle;", "", ApiSince=23)>]
static member ConvertRestrictionsToBundle : System.Collections.Generic.IList<Android.Content.RestrictionEntry> -> Android.OS.Bundle

Paramètres

entries
IList<RestrictionEntry>

liste des restrictions

Retours

Convertit une liste de restrictions en bundle correspondant, à l’aide du mappage suivant : RestrictionEntry Bundle RestrictionEntry.TYPE_BOOLEAN Bundle.putBoolean RestrictionEntry.TYPE_CHOICE , RestrictionEntry.TYPE_MULTI_SELECT Bundle.putStringArray RestrictionEntry.TYPE_INTEGER Bundle.putInt RestrictionEntry.TYPE_STRING Bundle.putString RestrictionEntry.TYPE_BUNDLE Bundle.putBundle RestrictionEntry.TYPE_BUNDLE_ARRAY Bundle.putParcelableArray

Attributs

Remarques

Convertit une liste de restrictions en bundle correspondant, à l’aide du mappage suivant : <table><tr><th>RestrictionEntry</th th><>Bundle</th></tr><tr><td>RestrictionEntry#TYPE_BOOLEAN</td><>Bundle#putBoolean</td></tr tr tr><><td>RestrictionEntry#TYPE_CHOICE,RestrictionEntry#TYPE_MULTI_SELECT< /td><td>Bundle#putStringArray</td></tr><><td>RestrictionEntry#TYPE_INTEGER<><>Bundle#putInt</td/td></tr tr td/tr tr><><>RestrictionEntry#TYPE_STRING</td><td>Bundle#putString</td></tr tr><><tr td>RestrictionEntry#TYPE_BUNDLE</td/td><>Bundle#putBundle</tr>< tr><><td>RestrictionEntry#TYPE_BUNDLE_ARRAY</td><>Bundle#putParcelableArray</td/td></tr/tr/tr></table>

Java documentation pour android.content.RestrictionsManager.convertRestrictionsToBundle(java.util.List<android.content.RestrictionEntry>).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à