ViewControllerNavigation: added wildcard for activity
This commit is contained in:
parent
89377c3fea
commit
d71938c87f
|
|
@ -54,7 +54,7 @@ open class ViewControllerNavigation<TActivity : FragmentActivity>(
|
||||||
* @param TState Type of state of fragment.
|
* @param TState Type of state of fragment.
|
||||||
*/
|
*/
|
||||||
fun <TState : Parcelable> pushViewController(
|
fun <TState : Parcelable> pushViewController(
|
||||||
viewControllerClass: Class<out ViewController<TActivity, TState>>,
|
viewControllerClass: Class<out ViewController<out TActivity, TState>>,
|
||||||
state: TState,
|
state: TState,
|
||||||
addToStack: Boolean = true,
|
addToStack: Boolean = true,
|
||||||
transactionSetup: ((FragmentTransaction) -> Unit)? = null
|
transactionSetup: ((FragmentTransaction) -> Unit)? = null
|
||||||
|
|
@ -82,7 +82,7 @@ open class ViewControllerNavigation<TActivity : FragmentActivity>(
|
||||||
* @param TTargetFragment Type of target fragment.
|
* @param TTargetFragment Type of target fragment.
|
||||||
*/
|
*/
|
||||||
fun <TState : Parcelable, TTargetFragment : Fragment> pushViewControllerForResult(
|
fun <TState : Parcelable, TTargetFragment : Fragment> pushViewControllerForResult(
|
||||||
viewControllerClass: Class<out ViewController<TActivity, TState>>,
|
viewControllerClass: Class<out ViewController<out TActivity, TState>>,
|
||||||
state: TState,
|
state: TState,
|
||||||
targetFragment: TTargetFragment,
|
targetFragment: TTargetFragment,
|
||||||
targetRequestCode: Int,
|
targetRequestCode: Int,
|
||||||
|
|
@ -109,7 +109,7 @@ open class ViewControllerNavigation<TActivity : FragmentActivity>(
|
||||||
* @param TState Type of state of fragment.
|
* @param TState Type of state of fragment.
|
||||||
*/
|
*/
|
||||||
fun <TState : Parcelable> setViewControllerAsTop(
|
fun <TState : Parcelable> setViewControllerAsTop(
|
||||||
viewControllerClass: Class<out ViewController<TActivity, TState>>,
|
viewControllerClass: Class<out ViewController<out TActivity, TState>>,
|
||||||
state: TState,
|
state: TState,
|
||||||
addToStack: Boolean = true,
|
addToStack: Boolean = true,
|
||||||
transactionSetup: ((FragmentTransaction) -> Unit)? = null
|
transactionSetup: ((FragmentTransaction) -> Unit)? = null
|
||||||
|
|
@ -135,7 +135,7 @@ open class ViewControllerNavigation<TActivity : FragmentActivity>(
|
||||||
* @param TState Type of state of fragment.
|
* @param TState Type of state of fragment.
|
||||||
*/
|
*/
|
||||||
fun <TState : Parcelable> setInitialViewController(
|
fun <TState : Parcelable> setInitialViewController(
|
||||||
viewControllerClass: Class<out ViewController<TActivity, TState>>,
|
viewControllerClass: Class<out ViewController<out TActivity, TState>>,
|
||||||
state: TState,
|
state: TState,
|
||||||
transactionSetup: ((FragmentTransaction) -> Unit)? = null
|
transactionSetup: ((FragmentTransaction) -> Unit)? = null
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue