|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object org.tamanegi.wallpaper.multipicture.plugin.LazyPickService.LazyPicker
public abstract static class LazyPickService.LazyPicker
The main implementation of plugin.
Following methods will be called from same thread, and the thread is separated for each LazyPicker instance.
onStart(String,ScreenInfo)
will be called at first and only once.getNext()
will be called when next picture content required.
This may be called multiple times if needed, such as
user double taps to reload pictures or time interval of reload.
onStop()
will be called when plugin no longer used.
コンストラクタの概要 | |
---|---|
LazyPickService.LazyPicker()
|
メソッドの概要 | |
---|---|
void |
finish()
Notify to live wallpaper that the lazy picker is no longer need to work. |
abstract PictureContentInfo |
getNext()
Should be implemented to return a picture content to show as wallpaper. |
void |
notifyChanged()
Notify to live wallpaper about picture content is changed. |
protected void |
onStart(String key,
ScreenInfo hint)
Called when lazy picker is starting. |
protected void |
onStop()
Called when lazy picker is stopping. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public LazyPickService.LazyPicker()
メソッドの詳細 |
---|
public abstract PictureContentInfo getNext()
null
, content's URI will be used.null
, previously returned content will be used.ContentResolver.openInputStream(Uri)
protected void onStart(String key, ScreenInfo hint)
key
parameter is unique for each settings,
and its value is same as PictureSourceContract.EXTRA_KEY
extra value when setting activity called.
The plugin can use this key
for SharedPreferences
's key.
key
- The configuration specific key.hint
- The screen specific hint.protected void onStop()
public final void notifyChanged()
getNext()
will be called later
if plugin calls notifyChanged()
.notifyChanged()
and getNext()
may or may not paired.
For example, when calling notifyChanged()
twice, getNext()
will be called once, twice or more.
Because getNext()
is only called when reloading,
and reloading is caused only when wallpaper is visible.
The reloading is also caused by user operation.
public final void finish()
onStop()
will be called later.
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |