This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
v0.8.0-rc3
Pre-release
Pre-release
2017-02-10
thirtyinch
- New:
TiPresenter#runOnUiThread(Runnable)
executes code on the view Ui Thread. #65 - New:
sendToView(view -> { })
automatically executes the action on the Ui Thread #65 - Fix: Change
sendToView(action)
actions will be executed after#onAttachView(view)
, and after allLifecycleObserver
received their events. This allows preparing the view inonAttachView(TiView)
for those actions. That way the view should be in a "running" state as if the view was never gone. #65 - Fix: Change
LifecycleObserver
s get called in order they are added for constructive events (VIEW_ATTACHED
) and in reversed order for destructive events (VIEW_DETACHED
,DESTROYED
). First in, last out. #65
plugin
- New
TiFragmentPlugin
#49
rx
- New:
manageViewSubscription(Subscription)
will now throw when the view isn't attached #58, #61 - Fix: Rename second parameter of
TiLifecycleObserver#onChange(state, beforeLifecycleEvent)
toTiLifecycleObserver#onChange(state, hasLifecycleMethodBeenCalled)
, also adjusted the documentation #61 - Fix: Change
RxTiPresenterUtils#isViewReady()
to emit the ready event afteronAttachView(TiView)
was called.
New: rx2
- New:
rx2
modulecompile "net.grandcentrix.thirtyinch:thirtyinch-rx2:$thirtyinchVersion"
#54 - New: auto dispose your
Disposable
withRxTiPresenterDisposableHandler#manageDisposable
andRxTiPresenterDisposableHandler#manageViewDisposable
#54, #64 RxTiPresenterUtils#isViewReady(): Observable<Boolean>
emits the view attached state
test
- New:
TiPresenterInstructor
automatically sets anExecutor
forrunOnUiThread
andsendToView
actions. It's even more recommended to use it instead of calling the lifecycle methods manually