語言

Configuration.NeedNewResources(ConfigChanges, ConfigChanges) 方法

定義

判斷是否需要從由 返回 #updateFrom(Configuration)的配置變更位元集中載入新資源。

[Android.Runtime.Register("needNewResources", "(II)Z", "")]
public static bool NeedNewResources(Android.Content.PM.ConfigChanges configChanges, Android.Content.PM.ConfigChanges interestingChanges);
[<Android.Runtime.Register("needNewResources", "(II)Z", "")>]
static member NeedNewResources : Android.Content.PM.ConfigChanges * Android.Content.PM.ConfigChanges -> bool

參數

configChanges
ConfigChanges

變化配置的遮罩,回傳為 #updateFrom(Configuration)

interestingChanges
ConfigChanges

資源可處理的配置變更如 android.util.TypedValue#changingConfigurations

傳回

true 如果資源需要載入, false 否則

屬性

備註

判斷是否需要從由 返回 #updateFrom(Configuration)的配置變更位元集中載入新資源。

Java 文件 android.content.res.Configuration.needNewResources(int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於