|
||||||||
前のパッケージ 次のパッケージ | フレームあり フレームなし |
参照先:
説明
クラスの概要 | |
---|---|
LazyPickerClient | |
LazyPickService | The base class of plugin service. |
LazyPickService.LazyPicker | The main implementation of plugin. |
PictureContentInfo | To specify content of picture. |
PictureSourceContract | The contract between the live wallpaper and plugins. |
ScreenInfo | To identify picture appears which screen. |
Plugin interfaces for MultiPicture Live Wallpaper.
The plugin should implement at least following two components.
Activity
that handles ACTION_GET_PICTURE_SOURCE
.Service
that extends LazyPickService
The live wallpaper calls ACTION_GET_PICTURE_SOURCE
action Intent
when user is configurating plugin.
When user chooses picture source option, setting screen lists activities that can handle ACTION_GET_PICTURE_SOURCE
.
And it will be called when user select item.
When setting screen starts plugin's setting Activity
, passed Intent
has extras to specify which and how configurates plugin.
If user confirm to use this plugin, Activity
should return ComponentName
of LazyPickService
and human readable description that will be shown at preference screen.
And set result as RESULT_OK
.
The live wallpaper binds a service that extends LazyPickService
when live wallpaper is shown.
The plugin should extend this class and should implement onCreateLazyPicker()
.
The onCreateLazyPicker()
create and returns new instance of lazy picker object that extends LazyPickService.LazyPicker
.
The subclass of LazyPickService.LazyPicker
will create when LazyPickService.onCreateLazyPicker()
is called.
The instance correspond to each screen one by one.
When live wallpaper requires picture content,
live wallpaper calls getNext()
.
The getNext()
should return URI of picture content.
|
||||||||
前のパッケージ 次のパッケージ | フレームあり フレームなし |