Share via


DevicePolicyManager.IsNetworkLoggingEnabled(ComponentName) Method

Definition

Return whether network logging is enabled by a device owner or profile owner of a managed profile.

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

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Can only be null if the caller is a delegated app with #DELEGATION_NETWORK_LOGGING or has MANAGE_USERS permission.

Returns

true if network logging is enabled by device owner or profile owner, false otherwise.

Attributes

Remarks

Return whether network logging is enabled by a device owner or profile owner of a managed profile.

Java documentation for android.app.admin.DevicePolicyManager.isNetworkLoggingEnabled(android.content.ComponentName).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to