共用方式為


DevicePolicyManager.GetMeteredDataDisabledPackages(ComponentName) Method

Definition

Called by a device or profile owner to retrieve the list of packages which are restricted by the admin from using metered data.

[Android.Runtime.Register("getMeteredDataDisabledPackages", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetMeteredDataDisabledPackages_Landroid_content_ComponentName_Handler", ApiSince=28)]
public virtual System.Collections.Generic.IList<string> GetMeteredDataDisabledPackages (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getMeteredDataDisabledPackages", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetMeteredDataDisabledPackages_Landroid_content_ComponentName_Handler", ApiSince=28)>]
abstract member GetMeteredDataDisabledPackages : Android.Content.ComponentName -> System.Collections.Generic.IList<string>
override this.GetMeteredDataDisabledPackages : Android.Content.ComponentName -> System.Collections.Generic.IList<string>

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with.

Returns

the list of restricted package names.

Attributes

Remarks

Called by a device or profile owner to retrieve the list of packages which are restricted by the admin from using metered data.

Java documentation for android.app.admin.DevicePolicyManager.getMeteredDataDisabledPackages(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