語言

DevicePolicyManager.IsNetworkLoggingEnabled(ComponentName) 方法

定義

回傳網路日誌是由裝置擁有者啟用,或是受管理設定檔的設定檔擁有者啟用。

[Android.Runtime.Register("isNetworkLoggingEnabled", "(Landroid/content/ComponentName;)Z", "GetIsNetworkLoggingEnabled_Landroid_content_ComponentName_Handler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_NETWORK_LOGGING")]
public virtual bool IsNetworkLoggingEnabled(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("isNetworkLoggingEnabled", "(Landroid/content/ComponentName;)Z", "GetIsNetworkLoggingEnabled_Landroid_content_ComponentName_Handler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_NETWORK_LOGGING")>]
abstract member IsNetworkLoggingEnabled : Android.Content.ComponentName -> bool
override this.IsNetworkLoggingEnabled : Android.Content.ComponentName -> bool

參數

admin
ComponentName

這個請求就是和這個 DeviceAdminReceiver 問題有關的。 只有當來電者是被委託的應用程式,或#DELEGATION_NETWORK_LOGGING擁有MANAGE_USERS權限時才會發生null

傳回

true 如果裝置擁有者或設定檔擁有 false 者啟用網路日誌,否則。

屬性

備註

回傳網路日誌是由裝置擁有者啟用,或是受管理設定檔的設定檔擁有者啟用。

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

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

適用於