| Banner.kt |
Default layout for a Banner messaging surface with two text buttons.
@param message The primary text displayed to the user.
@param button1Text The text of the first button.
@param button2Text The text of the second button.
@param onButton1Click Invoked when the first button is clicked.
@param onButton2Click Invoked when the second button is clicked.
|
2731 |
- |
| BetaLabel.kt |
Beta label.
@param modifier The modifier to apply to this layout.
|
1710 |
- |
| ClickableSubstringLink.kt |
[Text] containing a substring styled as an URL informing when this is clicked.
@param text Full text that will be displayed.
@param textStyle The [TextStyle] to apply to the text.
@param textColor [Color] of the normal text. The URL substring will have a default URL style applied.
@param linkTextColor [Color] of the link text.
@param linkTextDecoration The decorations to paint on the link text (e.g., an underline).
@param clickableStartIndex [text] index at which the URL substring starts.
@param clickableEndIndex [text] index at which the URL substring ends.
@param onClick Callback to be invoked only when the URL substring is clicked.
|
3470 |
- |
| core |
|
|
- |
| DismissibleItemBackground.kt |
The background of an item that is being swiped horizontally.
@param isSwipeActive Whether the swipe gesture is active.
@param isSwipingToStart Whether the swipe gesture is in the start direction.
@param modifier [Modifier] to apply to the background.
@param shape Shape of the background.
|
4011 |
- |
| ext |
|
|
- |
| Favicon.kt |
Load and display the favicon of a particular website.
@param url Website URL for which the favicon will be shown.
@param size [Dp] height and width of the image to be loaded.
@param modifier [Modifier] to be applied to the layout.
@param isPrivate Whether or not a private request (like in private browsing) should be used to download the icon (if
needed).
@param imageUrl Optional image URL to create an [IconRequest.Resource] from.
@param shape The shape used to clip the favicon. Defaults to a slightly rounded rectangle. Use [CircleShape] for a
round image.
|
6290 |
- |
| home |
|
|
- |
| HorizontalFadingEdgeBox.kt |
Displays the [content] with the right edge fading.
@param modifier [Modifier] for the container.
@param fadeWidth Length of the fading edge.
@param backgroundColor [Color] of the background shown under the content.
@param isContentRtl Whether or not the content should be displayed Right to Left
@param content The content whose right edge must be faded.
|
4120 |
- |
| Image.kt |
A composable that lays out and draws the image from a given URL while showing a default placeholder while that image
is downloaded or a default fallback image when downloading failed.
@param url URL from where the to download the image to be shown.
@param modifier [Modifier] to be applied to the layout.
@param private Whether or not this is a private request. Like in private browsing mode, private requests will not
cache anything on disk and not send any cookies shared with the browser.
@param targetSize Image size (width and height) the loaded image should be scaled to.
@param contentDescription Localized text used by accessibility services to describe what this image represents. This
should always be provided unless this image is used for decorative purposes, and does not represent a meaningful
action that a user can take.
@param alignment Optional alignment parameter used to place the [Painter] in the given bounds defined by the width
and height.
@param contentScale Optional scale parameter used to determine the aspect ratio scaling to be used if the bounds are
a different size from the intrinsic size of the [Painter].
@param placeholder composable displayed while the image is still loading. By default set to a solid color in
[DefaultImagePlaceholder].
@param fallback composable displayed when the image fails loading. By default set to a solid color in
[DefaultImagePlaceholder].
|
3804 |
- |
| ImagesPlaceholder.kt |
Renders the app image placeholder while the image is still getting loaded.
@param placeholder [Composable] composable used during loading. By default, set to [DefaultImagePlaceholder] in
[org.mozilla.fenix.compose.Image].
|
2595 |
- |
| LazyListEagerFlingBehavior.kt |
[FlingBehavior] for a [LazyRow] that will automatically scroll the list in the fling direction to fully show the next
item.
|
1673 |
- |
| list |
|
|
- |
| ListItemTabSurface.kt |
Shared default configuration of a ListItemTabLarge Composable.
@param imageUrl URL from where the to download a header image of the tab this composable renders.
@param imageContentScale Optional scale parameter used to determine the aspect ratio scaling to be used on the image.
@param backgroundColor Background [Color] of the item.
@param contentPadding Padding used for the image and details of the item.
@param onClick Optional callback to be invoked when this composable is clicked.
@param tabDetails [Composable] Displayed to the the end of the image. Allows for variation in the item text style.
|
4432 |
- |
| Menu.kt |
Root popup action dropdown menu.
@param menuItems List of items to be displayed in the menu.
@param showMenu Whether or not the menu is currently displayed to the user.
@param cornerShape Shape to apply to the corners of the dropdown.
@param modifier Modifier to be applied to the menu.
@param canShowCheckItems Whether the user can check items on the dropdown menu.
@param offset Offset to be added to the position of the menu.
@param onDismissRequest Invoked when user dismisses the menu or on orientation changes.
|
8854 |
- |
| MessageCard.kt |
State-based Message Card.
@param messageCardState State representing the card.
@param modifier Modifier to be applied to the card.
@param onClick Invoked when user clicks on the message card.
@param onCloseButtonClick Invoked when user clicks on close button to remove message.
|
5651 |
- |
| navigation |
|
|
- |
| ScrollIndicator.kt |
A slim, dynamic scroll indicator that provides visual feedback during scrolling.
@param scrollState The [ScrollState] of the scrollable container to synchronize with.
@param modifier [Modifier] to be applied to the layout.
@param enabled When true, the scrollbar is rendered (e.g., on small devices to hint at more content).
|
2849 |
- |
| settings |
|
|
- |
| snackbar |
|
|
- |
| TabThumbnail.kt |
Thumbnail belonging to a [tab]. If a thumbnail is not available, the favicon will be displayed until the thumbnail is
loaded.
@param tabThumbnailImageData The tab information needed to render a thumbnail.
@param thumbnailSizePx Size of the thumbnail in pixels.
@param modifier [Modifier] used to draw the image content.
@param shape [Shape] to be applied to the thumbnail card.
@param border [BorderStroke] to be applied around the thumbnail card.
@param contentDescription Text used by accessibility services to describe what this image represents.
@param alignment [Alignment] used to draw the image content.
|
2676 |
- |
| TabThumbnailImageData.kt |
Data class containing only the necessary data from [TabSessionState] to display a tab's thumbnail so the entire
[TabSessionState] need not be passed.
@property tabId: The tab's id
@property isPrivate: Is the tab private?
@property tabUrl: The tab's URL
@property tabIcon: The tab's icon
|
1330 |
- |
| ThumbnailCard.kt |
Card which will display a thumbnail. If a thumbnail is not available for [url], the favicon will be displayed until
the thumbnail is loaded.
@param url Url to display thumbnail for.
@param request [ImageLoadRequest] used to fetch the thumbnail bitmap.
@param modifier [Modifier] used to draw the image content.
@param backgroundColor [Color] used for the background of the favicon.
@param contentDescription Text used by accessibility services to describe what this image represents.
@param contentScale [ContentScale] used to draw image content.
@param alignment [Alignment] used to draw the image content.
|
3677 |
- |
| ThumbnailImage.kt |
Thumbnail belonging to a [TabSessionState]. Asynchronously fetches the bitmap from storage.
@param tabThumbnailImageData The image data of the thumbnail to fetch.
@param thumbnailSizePx The requested size of the thumbnail in pixels.
@param alignment [Alignment] used to draw the image content.
@param modifier [Modifier] used to draw the image content.
@param contentDescription Optional text used by accessibility services to describe what this image represents.
|
9287 |
- |