[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Navigation] Make NamedNavArgument's fields public #174

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions navigation/navigation-compose/api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ package androidx.navigation.compose {
}

public final class NamedNavArgument {
method public operator String component1();
method public operator androidx.navigation.NavArgument component2();
method public androidx.navigation.NavArgument getArgument();
method public String getName();
property public final androidx.navigation.NavArgument argument;
property public final String name;
}

public final class NamedNavArgumentKt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ package androidx.navigation.compose {
}

public final class NamedNavArgument {
method public operator String component1();
method public operator androidx.navigation.NavArgument component2();
method public androidx.navigation.NavArgument getArgument();
method public String getName();
property public final androidx.navigation.NavArgument argument;
property public final String name;
}

public final class NamedNavArgumentKt {
Expand Down
6 changes: 6 additions & 0 deletions navigation/navigation-compose/api/restricted_current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ package androidx.navigation.compose {
}

public final class NamedNavArgument {
method public operator String component1();
method public operator androidx.navigation.NavArgument component2();
method public androidx.navigation.NavArgument getArgument();
method public String getName();
property public final androidx.navigation.NavArgument argument;
property public final String name;
}

public final class NamedNavArgumentKt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public fun navArgument(
* Construct a named [NavArgument] by using the [navArgument] method.
*/
public class NamedNavArgument internal constructor(
private val name: String,
private val argument: NavArgument
public val name: String,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add KDocs to this and the other methods

public val argument: NavArgument
) {
internal operator fun component1(): String = name
internal operator fun component2(): NavArgument = argument
public operator fun component1(): String = name
public operator fun component2(): NavArgument = argument
}