ThirtyInch v0.8.0-rc3 Release Notes
Release Date: 2017-02-10 // about 7 years ago-
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
- ๐ New: