IT. Expert System.

Android Reference

AppWidgetHost


android.appwidget

Class AppWidgetHost



  • public class AppWidgetHost
    extends Object
    AppWidgetHost provides the interaction with the AppWidget service for apps, like the home screen, that want to embed AppWidgets in their UI.
    • Method Detail

      • startListening

        public void startListening()
        Start receiving onAppWidgetChanged calls for your AppWidgets. Call this when your activity becomes visible, i.e. from onStart() in your Activity.
      • stopListening

        public void stopListening()
        Stop receiving onAppWidgetChanged calls for your AppWidgets. Call this when your activity is no longer visible, i.e. from onStop() in your Activity.
      • allocateAppWidgetId

        public int allocateAppWidgetId()
        Get a appWidgetId for a host in the calling process.
        Returns:
        a appWidgetId
      • allocateAppWidgetIdForSystem

        public static int allocateAppWidgetIdForSystem(int hostId)
        Get a appWidgetId for a host in the calling process.
        Returns:
        a appWidgetId
      • deleteAppWidgetId

        public void deleteAppWidgetId(int appWidgetId)
        Stop listening to changes for this AppWidget.
      • deleteAppWidgetIdForSystem

        public static void deleteAppWidgetIdForSystem(int appWidgetId)
        Stop listening to changes for this AppWidget.
      • deleteHost

        public void deleteHost()
        Remove all records about this host from the AppWidget manager.
        • Call this when initializing your database, as it might be because of a data wipe.
        • Call this to have the AppWidget manager release all resources associated with your host. Any future calls about this host will cause the records to be re-allocated.
      • deleteAllHosts

        public static void deleteAllHosts()
        Remove all records about all hosts for your package.
        • Call this when initializing your database, as it might be because of a data wipe.
        • Call this to have the AppWidget manager release all resources associated with your host. Any future calls about this host will cause the records to be re-allocated.
      • createView

        public final AppWidgetHostView createView(Context context,
                                   int appWidgetId,
                                   AppWidgetProviderInfo appWidget)
        Create the AppWidgetHostView for the given widget. The AppWidgetHost retains a pointer to the newly-created View.
      • onProviderChanged

        protected void onProviderChanged(int appWidgetId,
                             AppWidgetProviderInfo appWidget)
        Called when the AppWidget provider for a AppWidget has been upgraded to a new apk.
      • onProvidersChanged

        protected void onProvidersChanged()
        Called when the set of available widgets changes (ie. widget containing packages are added, updated or removed, or widget components are enabled or disabled.)
      • clearViews

        protected void clearViews()
        Clear the list of Views that have been created by this AppWidgetHost.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 43 / 158850409. Delta: 0.05052 с