File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
auth0/src/main/java/com/auth0/android/provider Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ boolean hasCompatibleBrowser(@NonNull PackageManager pm) {
5050 return getPreferredPackage (pm ) != null ;
5151 }
5252
53+ /**
54+ * Returns whether the browser preferred package has custom tab disabled or not.
55+ *
56+ * @param preferredPackage the preferred browser package name.
57+ * @return whether the browser preferred package has custom tab disabled or not.
58+ */
5359 boolean isDisabledCustomTabBrowser (@ NonNull String preferredPackage ) {
5460 return disabledCustomTabsPackages != null && disabledCustomTabsPackages .contains (preferredPackage );
5561 }
@@ -193,6 +199,13 @@ public Builder withBrowserPicker(@NonNull BrowserPicker browserPicker) {
193199 return this ;
194200 }
195201
202+ /**
203+ * Define a list of browser packages that disables the launching of authentication on custom tabs.
204+ * The authentication url will launch on the preferred package external browser.
205+ *
206+ * @param disabledCustomTabsPackages list of browser packages.
207+ * @return the current builder instance
208+ */
196209 @ NonNull
197210 public Builder withDisabledCustomTabsPackages (List <String > disabledCustomTabsPackages ) {
198211 this .disabledCustomTabsPackages = disabledCustomTabsPackages ;
You can’t perform that action at this time.
0 commit comments