RestrictionsManager.ConvertRestrictionsToBundle Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Converte uma lista de restrições no pacote correspondente usando o seguinte mapeamento: tabela<tr th RestrictionEntry>/th th<><Bundle>/th</tr><>tr<td><></td/td><>RestrictionEntry#TYPE_BOOLEAN</td></tr>Bundle#putBooleantr<td><>,<>< /td td/td>RestrictionEntry#TYPE_CHOICERestrictionEntry#TYPE_MULTI_SELECT<>/td</tr>Bundle#putStringArray<td><></td/td><>RestrictionEntry#TYPE_INTEGER</td></tr>Bundle#putInttr<td><><><>RestrictionEntry#TYPE_STRING</td td><>Bundle#putString</td></tr><tr><td>RestrictionEntry#TYPE_BUNDLE</td td><>Bundle#putBundle</td></tr><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 restrições
Retornos
Converte uma lista de restrições para o pacote correspondente, usando o seguinte mapeamento: 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
- Atributos
Comentários
Converte uma lista de restrições no pacote correspondente usando o seguinte mapeamento: tabela<tr th RestrictionEntry>/th th<><Bundle>/th</tr><>tr<td><></td/td><>RestrictionEntry#TYPE_BOOLEAN</td></tr>Bundle#putBooleantr<td><>,<>< /td td/td>RestrictionEntry#TYPE_CHOICERestrictionEntry#TYPE_MULTI_SELECT<>/td</tr>Bundle#putStringArray<td><></td/td><>RestrictionEntry#TYPE_INTEGER</td></tr>Bundle#putInttr<td><><><>RestrictionEntry#TYPE_STRING</td td><>Bundle#putString</td></tr><tr><td>RestrictionEntry#TYPE_BUNDLE</td td><>Bundle#putBundle</td></tr><tr><td>RestrictionEntry#TYPE_BUNDLE_ARRAY</td td><>Bundle#putParcelableArray</td></tr></table>
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.