RestrictionsManager.ConvertRestrictionsToBundle Método

Definición

Convierte una lista de restricciones en la agrupación correspondiente mediante la siguiente asignación: <table><tr><th>RestrictionEntry</th Bundle/th><>Bundle</th></tr<><>tdRestrictionEntry#TYPE_BOOLEAN<>/td><tdBundle#putBoolean<>/td></tr tr><td>RestrictionEntry#TYPE_CHOICE><, RestrictionEntry#TYPE_MULTI_SELECT</td<>td/td>><Bundle#putStringArray</tr tr>><<td><RestrictionEntry#TYPE_INTEGER/td td><<Bundle#putInt>/td td/tr td><><><>RestrictionEntry#TYPE_STRING</td><td>Bundle#putString</td></tr tr><><td>RestrictionEntry#TYPE_BUNDLE</td td/tdBundle#putBundle<>></td></tr>><<td><RestrictionEntry#TYPE_BUNDLE_ARRAY/td<>td<Bundle#putParcelableArray>/td></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

Parámetros

entries
IList<RestrictionEntry>

lista de restricciones

Devoluciones

Atributos

Comentarios

Convierte una lista de restricciones en la agrupación correspondiente mediante la siguiente asignación: <table><tr><th>RestrictionEntry</th Bundle/th><>Bundle</th></tr<><>tdRestrictionEntry#TYPE_BOOLEAN<>/td><tdBundle#putBoolean<>/td></tr tr><td>RestrictionEntry#TYPE_CHOICE><, RestrictionEntry#TYPE_MULTI_SELECT</td<>td/td>><Bundle#putStringArray</tr tr>><<td><RestrictionEntry#TYPE_INTEGER/td td><<Bundle#putInt>/td td/tr td><><><>RestrictionEntry#TYPE_STRING</td><td>Bundle#putString</td></tr tr><><td>RestrictionEntry#TYPE_BUNDLE</td td/tdBundle#putBundle<>></td></tr>><<td><RestrictionEntry#TYPE_BUNDLE_ARRAY/td<>td<Bundle#putParcelableArray>/td></tr></table>

Documentación de Java para android.content.RestrictionsManager.convertRestrictionsToBundle(java.util.List<android.content.RestrictionEntry>).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código Project y que se usan según los términos Creative Commons 2.5 Attribution License.

Se aplica a