DevicePolicyManager.GetCrossProfileContactsSearchDisabled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
由受管理個人檔案的個人檔案擁有者打電話來判斷聯絡人搜尋是否被停用。
[Android.Runtime.Register("getCrossProfileContactsSearchDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCrossProfileContactsSearchDisabled_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual bool GetCrossProfileContactsSearchDisabled(Android.Content.ComponentName admin);
[<Android.Runtime.Register("getCrossProfileContactsSearchDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCrossProfileContactsSearchDisabled_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member GetCrossProfileContactsSearchDisabled : Android.Content.ComponentName -> bool
override this.GetCrossProfileContactsSearchDisabled : Android.Content.ComponentName -> bool
參數
- admin
- ComponentName
這個請求就是和這個 DeviceAdminReceiver 問題有關的。
傳回
若未設定存取政策,舊版聯絡人搜尋將被停用狀態。 在 Android 14(API 34)及以後版本中,若設定了存取政策,當該政策不是封鎖清單時,即使某些套件被允許,也會回傳 true ;否則回傳 false。
- 屬性
備註
由受管理個人檔案的個人檔案擁有者打電話來判斷聯絡人搜尋是否被停用。
通話裝置管理員必須是設定檔擁有者。 若不符合,則會拋出安全例外。
從 開始 android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE,當 #setManagedProfileContactsAccessPolicy(PackagePolicy) 設定為非空政策且政策類型非 時,此設定將回傳為真 PackagePolicy#PACKAGE_POLICY_BLOCKLIST
此會員已被棄用。 使用時期android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE#getManagedProfileContactsAccessPolicy()
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。