AppWidgetProvider.OnEnabled(Context) 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 in response to the AppWidgetManager#ACTION_APPWIDGET_ENABLED
broadcast when
the a AppWidget for this provider is instantiated.
[Android.Runtime.Register("onEnabled", "(Landroid/content/Context;)V", "GetOnEnabled_Landroid_content_Context_Handler")]
public virtual void OnEnabled (Android.Content.Context? context);
[<Android.Runtime.Register("onEnabled", "(Landroid/content/Context;)V", "GetOnEnabled_Landroid_content_Context_Handler")>]
abstract member OnEnabled : Android.Content.Context -> unit
override this.OnEnabled : Android.Content.Context -> unit
Parameters
- context
- Context
The android.content.Context Context
in which this receiver is
running.
- Attributes
Remarks
Called in response to the AppWidgetManager#ACTION_APPWIDGET_ENABLED
broadcast when the a AppWidget for this provider is instantiated. Override this method to implement your own AppWidget functionality.
{
Java documentation for android.appwidget.AppWidgetProvider.onEnabled(android.content.Context)
.
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.