IT. Expert System.

Android Reference

AppWidgetProviderInfo


android.appwidget

Class AppWidgetProviderInfo

  • All Implemented Interfaces:
    Parcelable


    public class AppWidgetProviderInfo
    extends Object
    implements Parcelable
    Describes the meta data for an installed AppWidget provider. The fields in this class correspond to the fields in the <appwidget-provider> xml tag.
    • Field Detail

      • RESIZE_NONE

        public static final int RESIZE_NONE
        Widget is not resizable.
        See Also:
        Constant Field Values
      • RESIZE_HORIZONTAL

        public static final int RESIZE_HORIZONTAL
        Widget is resizable in the horizontal axis only.
        See Also:
        Constant Field Values
      • RESIZE_VERTICAL

        public static final int RESIZE_VERTICAL
        Widget is resizable in the vertical axis only.
        See Also:
        Constant Field Values
      • RESIZE_BOTH

        public static final int RESIZE_BOTH
        Widget is resizable in both the horizontal and vertical axes.
        See Also:
        Constant Field Values
      • WIDGET_CATEGORY_HOME_SCREEN

        public static final int WIDGET_CATEGORY_HOME_SCREEN
        Indicates that the widget can be displayed on the home screen. This is the default value.
        See Also:
        Constant Field Values
      • WIDGET_CATEGORY_KEYGUARD

        public static final int WIDGET_CATEGORY_KEYGUARD
        Indicates that the widget can be displayed on the keyguard.
        See Also:
        Constant Field Values
      • minWidth

        public int minWidth
        The default height of the widget when added to a host, in dp. The widget will get at least this width, and will often be given more, depending on the host.

        This field corresponds to the android:minWidth attribute in the AppWidget meta-data file.

      • minHeight

        public int minHeight
        The default height of the widget when added to a host, in dp. The widget will get at least this height, and will often be given more, depending on the host.

        This field corresponds to the android:minHeight attribute in the AppWidget meta-data file.

      • minResizeWidth

        public int minResizeWidth
        Minimum width (in dp) which the widget can be resized to. This field has no effect if it is greater than minWidth or if horizontal resizing isn't enabled (see resizeMode).

        This field corresponds to the android:minResizeWidth attribute in the AppWidget meta-data file.

      • minResizeHeight

        public int minResizeHeight
        Minimum height (in dp) which the widget can be resized to. This field has no effect if it is greater than minHeight or if vertical resizing isn't enabled (see resizeMode).

        This field corresponds to the android:minResizeHeight attribute in the AppWidget meta-data file.

      • updatePeriodMillis

        public int updatePeriodMillis
        How often, in milliseconds, that this AppWidget wants to be updated. The AppWidget manager may place a limit on how often a AppWidget is updated.

        This field corresponds to the android:updatePeriodMillis attribute in the AppWidget meta-data file.

        Note: Updates requested with updatePeriodMillis will not be delivered more than once every 30 minutes.

      • initialLayout

        public int initialLayout
        The resource id of the initial layout for this AppWidget. This should be displayed until the RemoteViews for the AppWidget is available.

        This field corresponds to the android:initialLayout attribute in the AppWidget meta-data file.

      • initialKeyguardLayout

        public int initialKeyguardLayout
        The resource id of the initial layout for this AppWidget when it is displayed on keyguard. This parameter only needs to be provided if the widget can be displayed on the keyguard, see widgetCategory.

        This field corresponds to the android:initialKeyguardLayout attribute in the AppWidget meta-data file.

      • configure

        public ComponentName configure
        The activity to launch that will configure the AppWidget.

        This class name of field corresponds to the android:configure attribute in the AppWidget meta-data file. The package name always corresponds to the package containing the AppWidget provider.

      • label

        public String label
        The label to display to the user in the AppWidget picker. If not supplied in the xml, the application label will be used.

        This field corresponds to the android:label attribute in the <receiver> element in the AndroidManifest.xml file.

      • icon

        public int icon
        The icon to display for this AppWidget in the AppWidget picker. If not supplied in the xml, the application icon will be used.

        This field corresponds to the android:icon attribute in the <receiver> element in the AndroidManifest.xml file.

      • autoAdvanceViewId

        public int autoAdvanceViewId
        The view id of the AppWidget subview which should be auto-advanced by the widget's host.

        This field corresponds to the android:autoAdvanceViewId attribute in the AppWidget meta-data file.

      • previewImage

        public int previewImage
        A preview of what the AppWidget will look like after it's configured. If not supplied, the AppWidget's icon will be used.

        This field corresponds to the android:previewImage attribute in the <receiver> element in the AndroidManifest.xml file.

      • widgetCategory

        public int widgetCategory
        Determines whether this widget can be displayed on the home screen, the keyguard, or both. A widget which is displayed on both needs to ensure that it follows the design guidelines for both widget classes. This can be achieved by querying the AppWidget options in its widget provider's update method.

        This field corresponds to the widgetCategory attribute in the AppWidget meta-data file.

    • Constructor Detail

      • AppWidgetProviderInfo

        public AppWidgetProviderInfo()
      • AppWidgetProviderInfo

        public AppWidgetProviderInfo(Parcel in)
        Unflatten the AppWidgetProviderInfo from a parcel.
    • Method Detail

      • clone

        public AppWidgetProviderInfo clone()
        Description copied from class: Object
        Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.
        Overrides:
        clone in class Object
        Returns:
        a copy of this object.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


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: 2258 / 96488057. Delta: 0.07237 с