語言

DevicePolicyManager.GetCrossProfileCallerIdDisabled(ComponentName) 方法

定義

由受管理帳號的個人檔案擁有者呼叫,以判斷來電顯示資訊是否被停用。

[Android.Runtime.Register("getCrossProfileCallerIdDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCrossProfileCallerIdDisabled_Landroid_content_ComponentName_Handler")]
public virtual bool GetCrossProfileCallerIdDisabled(Android.Content.ComponentName admin);
[<Android.Runtime.Register("getCrossProfileCallerIdDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCrossProfileCallerIdDisabled_Landroid_content_ComponentName_Handler")>]
abstract member GetCrossProfileCallerIdDisabled : Android.Content.ComponentName -> bool
override this.GetCrossProfileCallerIdDisabled : Android.Content.ComponentName -> bool

參數

admin
ComponentName

這個請求就是和這個 DeviceAdminReceiver 問題有關的。

傳回

屬性

備註

由受管理帳號的個人檔案擁有者呼叫,以判斷來電顯示資訊是否被停用。

通話裝置管理員必須是設定檔擁有者。 若不符合,則會拋出安全例外。

從 開始 android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE,當 #setManagedProfileCallerIdAccessPolicy(PackagePolicy) 設定為非空政策且政策類型非 時,此設定將回傳為真 PackagePolicy#PACKAGE_POLICY_BLOCKLIST

此會員已被棄用。 以 開頭android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE,改用#getManagedProfileCallerIdAccessPolicy()

Java 文件 android.app.admin.DevicePolicyManager.getCrossProfileCallerIdDisabled(android.content.ComponentName)。

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

適用於