DevicePolicyManager.GetCrossProfileWidgetProviders(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 the profile owner of a managed profile or a holder of the permission
android.Manifest.permission#MANAGE_DEVICE_POLICY_PROFILE_INTERACTION
to query
providers from which packages are available in the parent profile.
[Android.Runtime.Register("getCrossProfileWidgetProviders", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetCrossProfileWidgetProviders_Landroid_content_ComponentName_Handler")]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_PROFILE_INTERACTION")]
public virtual System.Collections.Generic.IList<string> GetCrossProfileWidgetProviders (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getCrossProfileWidgetProviders", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetCrossProfileWidgetProviders_Landroid_content_ComponentName_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_PROFILE_INTERACTION")>]
abstract member GetCrossProfileWidgetProviders : Android.Content.ComponentName -> System.Collections.Generic.IList<string>
override this.GetCrossProfileWidgetProviders : Android.Content.ComponentName -> System.Collections.Generic.IList<string>
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with. Null if the
caller is not a device admin.
Returns
The allowlisted package list.
- Attributes
Remarks
Called by the profile owner of a managed profile or a holder of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_PROFILE_INTERACTION
to query providers from which packages are available in the parent 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.
Applies to
See also
- <xref:Android.App.Admin.DevicePolicyManager.AddCrossProfileWidgetProvider(Android.Content.ComponentName%2c+System.String)>
- <xref:Android.App.Admin.DevicePolicyManager.RemoveCrossProfileWidgetProvider(Android.Content.ComponentName%2c+System.String)>