DevicePolicyManager.GetMeteredDataDisabledPackages(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.
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.
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.