| AccessibilityUtils.kt |
General utilities to to improve a11y support, such as managing screen reader focus.
|
2932 |
- |
| AddSearchWidgetPrompt.kt |
Displays the "add search widget" prompt for capable devices.
@param activity the parent [Activity].
|
2288 |
- |
| ChangeAppLauncherIcon.kt |
Required to implement the [FxNimbus.features] alternativeAppLauncherIcon feature.
Will set the app launcher icon based on the [resetToDefault] flag.
Checks whether the icon needs updating to prevent unnecessary icon updates.
@param context The application [Context].
@param shortcutManager [ShortcutManagerWrapper] to safely access some features in [ShortcutInfoCompat].
@param shortcutInfo A helper class for updating [ShortcutInfoCompat].
@param appAlias The 'default' app alias defined in AndroidManifest.xml.
@param alternativeAppAlias The 'alternative' app alias defined in AndroidManifest.xml.
@param resetToDefault True to reset the icon to default, otherwise false to use the alternative icon.
@param crashReporter An instance of [CrashReporting] to record expected caught exceptions during
shortcuts update.
|
9893 |
- |
| Colors.kt |
Converts a string of hexadecimal characters to a Long color value.
|
362 |
- |
| GetApplicationInstalledTime.kt |
Returns the installation time of this application (in milliseconds).
@return The installation time in milliseconds since epoch, or `0L` if unavailable.
|
1072 |
- |
| IntentUtils.kt |
FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable.
|
480 |
- |
| LinkTextView.kt |
An [AppCompatTextView] that announces as link in screen readers for a11y purposes
|
1348 |
- |
| Locale.kt |
Enum representing various locales (languageāregion).
Country-only names are used when there is a single locale per country in this list.
For countries with multiple locales, the language is appended to the country name.
|
1955 |
- |
| LocaleUtils.kt |
Helper class for displaying Locale name.
|
8742 |
- |
| NotificationBase.kt |
Create a [Notification] with default behaviour and styling.
Optionally applies BigTextStyle for extended text, if specified.
|
1444 |
- |
| OnWifiChanged.java |
Functional interface for listening to when wifi is/is not connected.
This is not a () -> Boolean so that method parameters can be more clearly typed.
This file is in Java because of the SAM conversion problem in Kotlin.
See https://youtrack.jetbrains.com/issue/KT-7770.
|
628 |
- |
| PersistStoryUTMRequestInterceptor.kt |
[RequestInterceptor] that will synchronize the application specific story UTM parameters
between previous and new loaded URL in case of redirect requests.
|
1450 |
- |
| ScreenMetricsCompat.kt |
Returns true if the device has a large screen size. This is determined by the smallest width
of the screen (not window). This value will not change over the course of the app's lifecycle.
To determine whether the app's window size is at least that of a tablet, consider using
[Context.isLargeWindow] instead.
|
3875 |
- |
| SecretSettingsPrefDefaults.kt |
Resets secret settings preferences to their default values defined in [Settings].
|
1140 |
- |
| Settings.kt |
|
127709 |
- |
| Stories.kt |
Helper methods for interacting with tabs and URLs of stories opened from application's home screen.
|
3233 |
- |
| ThemeUtils.kt |
Determines if dark mode should be enabled based on user settings.
|
763 |
- |
| ToolbarPopupWindow.kt |
Since Android 12 reading the clipboard triggers an OS notification.
As such it is important that we do not read it prematurely and only when the user trigger a paste action.
|
7743 |
- |
| TransitionsAnimation.kt |
[EnterTransition] when navigating to the main content sheet.
|
5444 |
- |
| Undo.kt |
Get the recommended time an "undo" action should be available until it can automatically be
dismissed. The delay may be different based on the accessibility settings of the device.
@return The undo delay as a [Long] in milliseconds.
|
5472 |
- |
| view |
|
|
- |