Share via


AppWidgetManager.GetInstalledProvidersForProfile(UserHandle) Method

Definition

Gets the AppWidget providers for the given user profile.

[Android.Runtime.Register("getInstalledProvidersForProfile", "(Landroid/os/UserHandle;)Ljava/util/List;", "GetGetInstalledProvidersForProfile_Landroid_os_UserHandle_Handler")]
public virtual System.Collections.Generic.IList<Android.Appwidget.AppWidgetProviderInfo> GetInstalledProvidersForProfile (Android.OS.UserHandle? profile);
[<Android.Runtime.Register("getInstalledProvidersForProfile", "(Landroid/os/UserHandle;)Ljava/util/List;", "GetGetInstalledProvidersForProfile_Landroid_os_UserHandle_Handler")>]
abstract member GetInstalledProvidersForProfile : Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Appwidget.AppWidgetProviderInfo>
override this.GetInstalledProvidersForProfile : Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Appwidget.AppWidgetProviderInfo>

Parameters

profile
UserHandle

The profile for which to get providers. Passing null is equivalent to querying for only the calling user.

Returns

The installed providers, or an empty list if none are found for the given user.

Attributes

Remarks

Gets the AppWidget providers for the given user profile. User profile can only be the current user or a profile of the current user. For example, the current user may have a corporate profile. In this case the parent user profile has a child profile, the corporate one.

Java documentation for android.appwidget.AppWidgetManager.getInstalledProvidersForProfile(android.os.UserHandle).

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