Aurimas Liutikas | 3aa5a20 | 2020-10-05 09:42:14 -0700 | [diff] [blame] | 1 | // Signature format: 4.0 |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 2 | package androidx.navigation { |
| 3 | |
| 4 | public final class ActionOnlyNavDirections implements androidx.navigation.NavDirections { |
| 5 | ctor public ActionOnlyNavDirections(int); |
| 6 | method public int getActionId(); |
| 7 | method public android.os.Bundle getArguments(); |
| 8 | } |
| 9 | |
| 10 | public interface FloatingWindow { |
| 11 | } |
| 12 | |
| 13 | public final class NavAction { |
| 14 | ctor public NavAction(@IdRes int); |
| 15 | ctor public NavAction(@IdRes int, androidx.navigation.NavOptions?); |
| 16 | ctor public NavAction(@IdRes int, androidx.navigation.NavOptions?, android.os.Bundle?); |
| 17 | method public android.os.Bundle? getDefaultArguments(); |
| 18 | method public int getDestinationId(); |
| 19 | method public androidx.navigation.NavOptions? getNavOptions(); |
| 20 | method public void setDefaultArguments(android.os.Bundle?); |
| 21 | method public void setNavOptions(androidx.navigation.NavOptions?); |
| 22 | } |
| 23 | |
| 24 | public interface NavArgs { |
| 25 | } |
| 26 | |
| 27 | public final class NavArgument { |
| 28 | method public Object? getDefaultValue(); |
Jeremy Woods | c96f086 | 2021-02-27 01:40:50 -0800 | [diff] [blame^] | 29 | method public androidx.navigation.NavType<java.lang.Object> getType(); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 30 | method public boolean isDefaultValuePresent(); |
| 31 | method public boolean isNullable(); |
Jeremy Woods | c96f086 | 2021-02-27 01:40:50 -0800 | [diff] [blame^] | 32 | property public final Object? defaultValue; |
| 33 | property public final boolean isDefaultValuePresent; |
| 34 | property public final boolean isNullable; |
| 35 | property public final androidx.navigation.NavType<java.lang.Object> type; |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | public static final class NavArgument.Builder { |
| 39 | ctor public NavArgument.Builder(); |
| 40 | method public androidx.navigation.NavArgument build(); |
Jeremy Woods | c96f086 | 2021-02-27 01:40:50 -0800 | [diff] [blame^] | 41 | method public androidx.navigation.NavArgument.Builder setDefaultValue(Object? defaultValue); |
| 42 | method public androidx.navigation.NavArgument.Builder setIsNullable(boolean isNullable); |
| 43 | method public <T> androidx.navigation.NavArgument.Builder setType(androidx.navigation.NavType<T> type); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 44 | } |
| 45 | |
Jeremy Woods | 1b403fb | 2020-04-06 17:56:22 -0700 | [diff] [blame] | 46 | public final class NavDeepLink { |
| 47 | method public String? getAction(); |
| 48 | method public String? getMimeType(); |
Jeremy Woods | 23c2ef9 | 2020-04-21 08:58:11 -0700 | [diff] [blame] | 49 | method public String? getUriPattern(); |
Jeremy Woods | 125c6fc | 2021-01-07 18:38:12 -0800 | [diff] [blame] | 50 | property public final String? action; |
| 51 | property public final String? mimeType; |
| 52 | property public final String? uriPattern; |
Jeremy Woods | 1b403fb | 2020-04-06 17:56:22 -0700 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | public static final class NavDeepLink.Builder { |
| 56 | method public androidx.navigation.NavDeepLink build(); |
Jeremy Woods | 125c6fc | 2021-01-07 18:38:12 -0800 | [diff] [blame] | 57 | method public static androidx.navigation.NavDeepLink.Builder fromAction(String action); |
| 58 | method public static androidx.navigation.NavDeepLink.Builder fromMimeType(String mimeType); |
| 59 | method public static androidx.navigation.NavDeepLink.Builder fromUriPattern(String uriPattern); |
| 60 | method public androidx.navigation.NavDeepLink.Builder setAction(String action); |
| 61 | method public androidx.navigation.NavDeepLink.Builder setMimeType(String mimeType); |
| 62 | method public androidx.navigation.NavDeepLink.Builder setUriPattern(String uriPattern); |
Jeremy Woods | 1b403fb | 2020-04-06 17:56:22 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | public class NavDeepLinkRequest { |
| 66 | method public String? getAction(); |
| 67 | method public String? getMimeType(); |
| 68 | method public android.net.Uri? getUri(); |
Jeremy Woods | 444c6cf | 2021-01-07 22:38:44 -0800 | [diff] [blame] | 69 | property public String? action; |
| 70 | property public String? mimeType; |
| 71 | property public android.net.Uri? uri; |
Jeremy Woods | 1b403fb | 2020-04-06 17:56:22 -0700 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | public static final class NavDeepLinkRequest.Builder { |
| 75 | method public androidx.navigation.NavDeepLinkRequest build(); |
Jeremy Woods | 444c6cf | 2021-01-07 22:38:44 -0800 | [diff] [blame] | 76 | method public static androidx.navigation.NavDeepLinkRequest.Builder fromAction(String action); |
| 77 | method public static androidx.navigation.NavDeepLinkRequest.Builder fromMimeType(String mimeType); |
| 78 | method public static androidx.navigation.NavDeepLinkRequest.Builder fromUri(android.net.Uri uri); |
| 79 | method public androidx.navigation.NavDeepLinkRequest.Builder setAction(String action); |
| 80 | method public androidx.navigation.NavDeepLinkRequest.Builder setMimeType(String mimeType); |
| 81 | method public androidx.navigation.NavDeepLinkRequest.Builder setUri(android.net.Uri uri); |
| 82 | field public static final androidx.navigation.NavDeepLinkRequest.Builder.Companion Companion; |
| 83 | } |
| 84 | |
| 85 | public static final class NavDeepLinkRequest.Builder.Companion { |
| 86 | method public androidx.navigation.NavDeepLinkRequest.Builder fromAction(String action); |
| 87 | method public androidx.navigation.NavDeepLinkRequest.Builder fromMimeType(String mimeType); |
| 88 | method public androidx.navigation.NavDeepLinkRequest.Builder fromUri(android.net.Uri uri); |
Jeremy Woods | 1b403fb | 2020-04-06 17:56:22 -0700 | [diff] [blame] | 89 | } |
| 90 | |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 91 | public class NavDestination { |
| 92 | ctor public NavDestination(androidx.navigation.Navigator<? extends androidx.navigation.NavDestination>); |
| 93 | ctor public NavDestination(String); |
| 94 | method public final void addArgument(String, androidx.navigation.NavArgument); |
| 95 | method public final void addDeepLink(String); |
Jeremy Woods | ea3efb9 | 2020-04-14 11:56:57 -0700 | [diff] [blame] | 96 | method public final void addDeepLink(androidx.navigation.NavDeepLink); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 97 | method public final androidx.navigation.NavAction? getAction(@IdRes int); |
| 98 | method public final java.util.Map<java.lang.String!,androidx.navigation.NavArgument!> getArguments(); |
| 99 | method @IdRes public final int getId(); |
| 100 | method public final CharSequence? getLabel(); |
| 101 | method public final String getNavigatorName(); |
| 102 | method public final androidx.navigation.NavGraph? getParent(); |
| 103 | method public boolean hasDeepLink(android.net.Uri); |
Jeremy Woods | ea3efb9 | 2020-04-14 11:56:57 -0700 | [diff] [blame] | 104 | method public boolean hasDeepLink(androidx.navigation.NavDeepLinkRequest); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 105 | method @CallSuper public void onInflate(android.content.Context, android.util.AttributeSet); |
| 106 | method protected static <C> Class<? extends C> parseClassFromName(android.content.Context, String, Class<? extends C>); |
| 107 | method public final void putAction(@IdRes int, @IdRes int); |
| 108 | method public final void putAction(@IdRes int, androidx.navigation.NavAction); |
| 109 | method public final void removeAction(@IdRes int); |
| 110 | method public final void removeArgument(String); |
| 111 | method public final void setId(@IdRes int); |
| 112 | method public final void setLabel(CharSequence?); |
| 113 | } |
| 114 | |
| 115 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public static @interface NavDestination.ClassType { |
| 116 | method public abstract Class<?> value(); |
| 117 | } |
| 118 | |
| 119 | public interface NavDirections { |
| 120 | method @IdRes public int getActionId(); |
| 121 | method public android.os.Bundle getArguments(); |
| 122 | } |
| 123 | |
| 124 | public class NavGraph extends androidx.navigation.NavDestination implements java.lang.Iterable<androidx.navigation.NavDestination> { |
| 125 | ctor public NavGraph(androidx.navigation.Navigator<? extends androidx.navigation.NavGraph>); |
| 126 | method public final void addAll(androidx.navigation.NavGraph); |
| 127 | method public final void addDestination(androidx.navigation.NavDestination); |
| 128 | method public final void addDestinations(java.util.Collection<androidx.navigation.NavDestination!>); |
| 129 | method public final void addDestinations(androidx.navigation.NavDestination!...); |
| 130 | method public final void clear(); |
| 131 | method public final androidx.navigation.NavDestination? findNode(@IdRes int); |
| 132 | method @IdRes public final int getStartDestination(); |
| 133 | method public final java.util.Iterator<androidx.navigation.NavDestination!> iterator(); |
| 134 | method public final void remove(androidx.navigation.NavDestination); |
| 135 | method public final void setStartDestination(@IdRes int); |
| 136 | } |
| 137 | |
| 138 | @androidx.navigation.Navigator.Name("navigation") public class NavGraphNavigator extends androidx.navigation.Navigator<androidx.navigation.NavGraph> { |
| 139 | ctor public NavGraphNavigator(androidx.navigation.NavigatorProvider); |
| 140 | method public androidx.navigation.NavGraph createDestination(); |
| 141 | method public androidx.navigation.NavDestination? navigate(androidx.navigation.NavGraph, android.os.Bundle?, androidx.navigation.NavOptions?, androidx.navigation.Navigator.Extras?); |
| 142 | method public boolean popBackStack(); |
| 143 | } |
| 144 | |
| 145 | public final class NavOptions { |
| 146 | method @AnimRes @AnimatorRes public int getEnterAnim(); |
| 147 | method @AnimRes @AnimatorRes public int getExitAnim(); |
| 148 | method @AnimRes @AnimatorRes public int getPopEnterAnim(); |
| 149 | method @AnimRes @AnimatorRes public int getPopExitAnim(); |
| 150 | method @IdRes public int getPopUpTo(); |
| 151 | method public boolean isPopUpToInclusive(); |
| 152 | method public boolean shouldLaunchSingleTop(); |
| 153 | } |
| 154 | |
| 155 | public static final class NavOptions.Builder { |
| 156 | ctor public NavOptions.Builder(); |
| 157 | method public androidx.navigation.NavOptions build(); |
| 158 | method public androidx.navigation.NavOptions.Builder setEnterAnim(@AnimRes @AnimatorRes int); |
| 159 | method public androidx.navigation.NavOptions.Builder setExitAnim(@AnimRes @AnimatorRes int); |
| 160 | method public androidx.navigation.NavOptions.Builder setLaunchSingleTop(boolean); |
| 161 | method public androidx.navigation.NavOptions.Builder setPopEnterAnim(@AnimRes @AnimatorRes int); |
| 162 | method public androidx.navigation.NavOptions.Builder setPopExitAnim(@AnimRes @AnimatorRes int); |
| 163 | method public androidx.navigation.NavOptions.Builder setPopUpTo(@IdRes int, boolean); |
| 164 | } |
| 165 | |
| 166 | public abstract class NavType<T> { |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 167 | method public static androidx.navigation.NavType<?> fromArgType(String? type, String? packageName); |
| 168 | method public abstract operator T? get(android.os.Bundle bundle, String key); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 169 | method public abstract String getName(); |
| 170 | method public boolean isNullableAllowed(); |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 171 | method public abstract T! parseValue(String value); |
| 172 | method public abstract void put(android.os.Bundle bundle, String key, T? value); |
| 173 | property public boolean isNullableAllowed; |
| 174 | property public abstract String name; |
| 175 | field public static final androidx.navigation.NavType<boolean[]> BoolArrayType; |
| 176 | field public static final androidx.navigation.NavType<java.lang.Boolean> BoolType; |
| 177 | field public static final androidx.navigation.NavType.Companion Companion; |
| 178 | field public static final androidx.navigation.NavType<float[]> FloatArrayType; |
| 179 | field public static final androidx.navigation.NavType<java.lang.Float> FloatType; |
| 180 | field public static final androidx.navigation.NavType<int[]> IntArrayType; |
| 181 | field public static final androidx.navigation.NavType<java.lang.Integer> IntType; |
| 182 | field public static final androidx.navigation.NavType<long[]> LongArrayType; |
| 183 | field public static final androidx.navigation.NavType<java.lang.Long> LongType; |
| 184 | field public static final androidx.navigation.NavType<java.lang.Integer> ReferenceType; |
| 185 | field public static final androidx.navigation.NavType<java.lang.String[]> StringArrayType; |
| 186 | field public static final androidx.navigation.NavType<java.lang.String> StringType; |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 187 | } |
| 188 | |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 189 | public static final class NavType.Companion { |
| 190 | method public androidx.navigation.NavType<?> fromArgType(String? type, String? packageName); |
| 191 | } |
| 192 | |
| 193 | public static final class NavType.EnumType<D extends java.lang.Enum<?>> extends androidx.navigation.NavType.SerializableType<D> { |
| 194 | ctor public NavType.EnumType(Class<D> type); |
| 195 | property public String name; |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 196 | } |
| 197 | |
| 198 | public static final class NavType.ParcelableArrayType<D extends android.os.Parcelable> extends androidx.navigation.NavType<D[]> { |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 199 | ctor public NavType.ParcelableArrayType(Class<D> type); |
| 200 | method public D![]? get(android.os.Bundle bundle, String key); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 201 | method public String getName(); |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 202 | method public D![] parseValue(String value); |
| 203 | method public void put(android.os.Bundle bundle, String key, D![]? value); |
| 204 | property public String name; |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 205 | } |
| 206 | |
| 207 | public static final class NavType.ParcelableType<D> extends androidx.navigation.NavType<D> { |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 208 | ctor public NavType.ParcelableType(Class<D> type); |
| 209 | method public D? get(android.os.Bundle bundle, String key); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 210 | method public String getName(); |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 211 | method public D! parseValue(String value); |
| 212 | method public void put(android.os.Bundle bundle, String key, D? value); |
| 213 | property public String name; |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 214 | } |
| 215 | |
| 216 | public static final class NavType.SerializableArrayType<D extends java.io.Serializable> extends androidx.navigation.NavType<D[]> { |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 217 | ctor public NavType.SerializableArrayType(Class<D> type); |
| 218 | method public D![]? get(android.os.Bundle bundle, String key); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 219 | method public String getName(); |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 220 | method public D![] parseValue(String value); |
| 221 | method public void put(android.os.Bundle bundle, String key, D![]? value); |
| 222 | property public String name; |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 223 | } |
| 224 | |
| 225 | public static class NavType.SerializableType<D extends java.io.Serializable> extends androidx.navigation.NavType<D> { |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 226 | ctor public NavType.SerializableType(Class<D> type); |
| 227 | method public D? get(android.os.Bundle bundle, String key); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 228 | method public String getName(); |
Jeremy Woods | 8f57617 | 2021-01-11 09:19:27 -0800 | [diff] [blame] | 229 | method public D parseValue(String value); |
| 230 | method public void put(android.os.Bundle bundle, String key, D value); |
| 231 | property public String name; |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 232 | } |
| 233 | |
| 234 | public abstract class Navigator<D extends androidx.navigation.NavDestination> { |
| 235 | ctor public Navigator(); |
| 236 | method public abstract D createDestination(); |
| 237 | method public abstract androidx.navigation.NavDestination? navigate(D, android.os.Bundle?, androidx.navigation.NavOptions?, androidx.navigation.Navigator.Extras?); |
| 238 | method public void onRestoreState(android.os.Bundle); |
| 239 | method public android.os.Bundle? onSaveState(); |
| 240 | method public abstract boolean popBackStack(); |
| 241 | } |
| 242 | |
| 243 | public static interface Navigator.Extras { |
| 244 | } |
| 245 | |
| 246 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) public static @interface Navigator.Name { |
| 247 | method public abstract String value(); |
| 248 | } |
| 249 | |
| 250 | public class NavigatorProvider { |
| 251 | ctor public NavigatorProvider(); |
| 252 | method public final androidx.navigation.Navigator<? extends androidx.navigation.NavDestination>? addNavigator(androidx.navigation.Navigator<? extends androidx.navigation.NavDestination>); |
| 253 | method @CallSuper public androidx.navigation.Navigator<? extends androidx.navigation.NavDestination>? addNavigator(String, androidx.navigation.Navigator<? extends androidx.navigation.NavDestination>); |
| 254 | method public final <T extends androidx.navigation.Navigator<?>> T getNavigator(Class<T!>); |
| 255 | method @CallSuper public <T extends androidx.navigation.Navigator<?>> T getNavigator(String); |
| 256 | } |
| 257 | |
| 258 | } |
| 259 | |