Package-level declarations
Properties
Scale the element uniformly. Alias for GraphicsLayerScope.scaleX and GraphicsLayerScope.scaleY. Getter returns the average value of the scale
Functions
Produces an annotated string identical to the original string For those times when an api requires AnnotatedString but you don't want to build one
Annotates this string with the spanStyle provided. The whole string is annotated.
Annotates this string using the builder provided. The string is the argument of the lambda.
Converts fractional offset to absolute offset
Converts absolute offset to fractional offset
Mark this element as autofillable.
Sets the background color to this string
Applies FontWeight.Bold to this string
Scrolls to this widget when an element is focused (i.e. user taps the input field). Use on text input fields to keep them visible while editing.
Adds text decorations provided to this string
Disables overlays over the content of current activity for as long as this composable is in the composition Works only on API 31 (S) and above, otherwise does nothing.
Traverses the context hierarchy until an activity is found, or null if not present.
Changes the fontFamily of this string
Applies FontStyle.Italic to this string
Keeps the screen of the current activity on while this composable is in composition.
Keeps the device screen on while the current composable is in the composition.
Keeps the device screen on while the current composable is in the composition.
Keeps the device screen on while the current composable is in the composition.
Keeps the device screen on while the current composable is in the composition.
Keeps the device screen on while the current composable is in the composition.
Possible values for orientation:
Plays a medium haptic feedback, similar to force-touch or long-tap effect.
Registers a new lifecycle observer for the lifetime of the composition of this function, then clears it.
Applies an offset to this GraphicsLayerScope
Remembers a reference to a Service's Binder in composition. The function will bind to a service while it is in the composition and unbind when it has left the composition. The function will maintain a ServiceConnection and return a State with a nullable value of service.
Remember the value produced by calculation. It behaves similarly to rememberSaveable, but uses ViewModel to store the value.
Sets flags to the parent activity, if exists, temporarily, until the composition is left. The flags are added and then removed, other flags are not changed Possible values of flags are from WindowManager.LayoutParams
Adds a shadow to this string. The shadow has a color, an offset and a blurRadius
A shortcut for sending messages to any social media app installed in the user's device. This will optionally return an activity result as it's why an extension for ManagedActivityResultLauncher.
Plays a short haptic feedback, similar to a software keyboard typing vibration.
Returns an enter transition that slides the element from the bottom fully
Returns an enter transition that slides the element from the left fully
Returns an enter transition that slides the element from the right fully
Returns an enter transition that slides the element from the top fully
A positive value means sliding from right to left, whereas a negative value would slide the content from left to right.
Positive itemHeightOffsetFraction means the item is moving up.
A positive value means sliding to the right, whereas a negative value would slide the content towards the left.
Positive itemHeightOffsetFraction means the item is moving down.
Returns an exit transition that slides the element to the bottom fully
Returns an exit transition that slides the element to the left fully
Returns an exit transition that slides the element to the right fully
Returns an exit transition that slides the element to the top fully
Strikes through this string
Adds an underline to this string
Sets the font weight for this string