Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

NavActionBuilder

class NavActionBuilder
kotlin.Any
   ↳ androidx.navigation.NavActionBuilder

DSL for building a NavAction.

Summary

Public constructors

DSL for building a NavAction.

Public methods
Unit
navOptions(optionsBuilder: NavOptionsBuilder.() -> Unit)

Sets the NavOptions for this action that should be used by default

Properties
MutableMap<String, Any?>

The set of default arguments that should be passed to the destination.

Int

The ID of the destination that should be navigated to when this action is used

Public constructors

<init>

NavActionBuilder()

DSL for building a NavAction.

Public methods

fun navOptions(optionsBuilder: NavOptionsBuilder.() -> Unit): Unit

Sets the NavOptions for this action that should be used by default

Properties

defaultArguments

val defaultArguments: MutableMap<String, Any?>

The set of default arguments that should be passed to the destination. The keys used here should be the same as those used on the NavDestinationBuilder.argument for the destination.

All values added here should be able to be added to a android.os.Bundle.

destinationId

var destinationId: Int

The ID of the destination that should be navigated to when this action is used