RestrictionsManager.ConvertRestrictionsToBundle 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用以下映射将限制列表转换为相应的捆绑包:表<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>
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。