push

open override fun push(screen: Screen, resultKey: String?): 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.


fun push(screen: Screen, args: Map<String, Any?>, resultKey: String?): Boolean(source)


open override fun push(record: SaveableBackStack.Record, resultKey: String?): 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.