push

abstract fun push(record: R, resultKey: String? = null): Boolean(source)

Push a new Record onto the back stack. The new record will become the top of the stack.

Return

If the record was successfully pushed onto the back stack

Parameters

record

The record to push onto the stack.

resultKey

An optional key that would be used to tag a result produced by this record. The previous record on the stack will receive this key.


abstract fun push(screen: Screen, resultKey: String? = null): Boolean(source)

Push a new Screen onto the back stack. This will be enveloped in a Record and the new record will become the top of the stack.

Return

If the screen was successfully pushed onto the back stack

Parameters

screen

The screen to push onto the stack.

resultKey

An optional key that would be used to tag a result produced by this record. The previous record on the stack will receive this key.