パッケージ org.tamanegi.wallpaper.multipicture.plugin

Plugin interfaces for MultiPicture Live Wallpaper.

参照先:
          説明

クラスの概要
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.
 

パッケージ org.tamanegi.wallpaper.multipicture.plugin の説明

Plugin interfaces for MultiPicture Live Wallpaper.

The plugin should implement at least following two components.

ACTION_GET_PICTURE_SOURCE

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.

LazyPickService

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.

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.