语言

RestrictionsManager.ConvertRestrictionsToBundle 方法

定义

使用以下映射将限制列表转换为相应的捆绑包:表<tr th RestrictionEntry>/th<><Bundle>/th<><>/tr tr<td/td><></td><>RestrictionEntry#TYPE_BOOLEAN<><>Bundle#putBoolean</tr tr td,/td td/td td/tr td><>,<></td>RestrictionEntry#TYPE_CHOICEtdRestrictionEntry#TYPE_MULTI_SELECT<><>Bundle#putStringArray<><><></tr tr td>RestrictionEntry#TYPE_INTEGER<><>Bundle#putInt<><><><>RestrictionEntry#TYPE_STRING</td><td/td>Bundle#putString<></tr><><td>RestrictionEntry#TYPE_BUNDLE</td><td/td>Bundle#putBundle<></tr><tr><td/td>RestrictionEntry#TYPE_BUNDLE_ARRAY</td><td>Bundle#putParcelableArray<></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

参数

entries
IList<RestrictionEntry>

限制列表

返回

包含已转换限制的捆绑包。

特性

注解

使用以下映射将限制列表转换为相应的捆绑包:表<tr th RestrictionEntry>/th<><Bundle>/th<><>/tr tr<td/td><></td><>RestrictionEntry#TYPE_BOOLEAN<><>Bundle#putBoolean</tr tr td,/td td/td td/tr td><>,<></td>RestrictionEntry#TYPE_CHOICEtdRestrictionEntry#TYPE_MULTI_SELECT<><>Bundle#putStringArray<><><></tr tr td>RestrictionEntry#TYPE_INTEGER<><>Bundle#putInt<><><><>RestrictionEntry#TYPE_STRING</td><td/td>Bundle#putString<></tr><><td>RestrictionEntry#TYPE_BUNDLE</td><td/td>Bundle#putBundle<></tr><tr><td/td>RestrictionEntry#TYPE_BUNDLE_ARRAY</td><td>Bundle#putParcelableArray<></tr></table>

Java文档android.content.RestrictionsManager.convertRestrictionsToBundle(java.util.List<android.content.RestrictionEntry>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于