android.app.WallpaperInfo
This class is used to specify meta information of a wallpaper service.
该类用于获取壁纸服务的元数据信息
Summary(摘要)
[Expand]
Inherited Constants(继承常量)
From interface android.os.Parcelable
Fields(域)
public static final Creator<WallpaperInfo> CREATOR Used to make this class parcelable.
Public Constructors(构造器)
WallpaperInfo(Context context, ResolveInfo service)
Constructor.
Public Methods(公开函数)
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
void dump(Printer pw, String prefix)
ComponentName getComponent()
Return the component of the service that implements this wallpaper.
返回实现壁纸的服务的组件名
String getPackageName()
Return the .apk package that implements this wallpaper.
返回实现壁纸的包名
ServiceInfo getServiceInfo()
Return the raw information about the Service implementing this wallpaper.
返回实现壁纸的服务的信息
String getServiceName()
Return the class name of the service component that implements this wallpaper.
返回实现壁纸的服务组件的类名
String getSettingsActivity()
Return the class name of an activity that provides a settings UI for the wallpaper.
CharSequence loadAuthor(PackageManager pm)
Return a string indicating the author(s) of this wallpaper.
返回壁纸作者描述的字符串
CharSequence loadDescription(PackageManager pm)
Return a brief summary of this wallpaper's behavior.
Drawable loadIcon(PackageManager pm)
Load the user-displayed icon for this wallpaper.
CharSequence loadLabel(PackageManager pm)
Load the user-displayed label for this wallpaper.
Drawable loadThumbnail(PackageManager pm)
Load the thumbnail image for this wallpaper.
String toString()
Returns a string containing a concise, human-readable description of this object.
void writeToParcel(Parcel dest, int flags)
Used to package this object into a Parcel.
[Expand]
Inherited Methods(继承函数)
From class java.lang.Object
From interface android.os.Parcelable