DevicePolicyManager.IsNetworkLoggingEnabled(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.