Partilhar via


RestrictionsManager.ConvertRestrictionsToBundle Método

Definição

Converte uma lista de restrições para o pacote correspondente, usando o seguinte mapeamento: <tabela><tr><th>RestrictionEntry</th>><Bundle</th></tr<>tr><td<RestrictionEntry#TYPE_BOOLEAN>/td><tdBundle#putBoolean<>/td></tr><tr tdRestrictionEntry#TYPE_CHOICE>><,<RestrictionEntry#TYPE_MULTI_SELECT /td<>tdBundle#putStringArray<>/td></tr><tr><td<RestrictionEntry#TYPE_INTEGER>/td><td<>Bundle#putInt/td>><<td><>RestrictionEntry#TYPE_STRING</td><td>Bundle#putString</td></tr><tr><td>RestrictionEntry#TYPE_BUNDLE</td><tdBundle#putBundle<>/td></tr><tr><td><RestrictionEntry#TYPE_BUNDLE_ARRAY/td><td<Bundle#putParcelableArray>/td></tr/tabela><>

[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 restrições

Retornos

Atributos

Comentários

Converte uma lista de restrições para o pacote correspondente, usando o seguinte mapeamento: <tabela><tr><th>RestrictionEntry</th>><Bundle</th></tr<>tr><td<RestrictionEntry#TYPE_BOOLEAN>/td><tdBundle#putBoolean<>/td></tr><tr tdRestrictionEntry#TYPE_CHOICE>><,<RestrictionEntry#TYPE_MULTI_SELECT /td<>tdBundle#putStringArray<>/td></tr><tr><td<RestrictionEntry#TYPE_INTEGER>/td><td<>Bundle#putInt/td>><<td><>RestrictionEntry#TYPE_STRING</td><td>Bundle#putString</td></tr><tr><td>RestrictionEntry#TYPE_BUNDLE</td><tdBundle#putBundle<>/td></tr><tr><td><RestrictionEntry#TYPE_BUNDLE_ARRAY/td><td<Bundle#putParcelableArray>/td></tr/tabela><>

Documentação Java para android.content.RestrictionsManager.convertRestrictionsToBundle(java.util.List<android.content.RestrictionEntry>).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.

Aplica-se a