Skip to content

Commit 377a16d

Browse files
committed
add comments
1 parent 42e92cf commit 377a16d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

auth0/src/main/java/com/auth0/android/provider/CustomTabsOptions.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)