SeslEyeDropperActivity

Activity for the Eye Dropper tool.

This activity allows users to pick a color from an image displayed on the screen. It uses a magnifying view to help users accurately select the desired color. The selected color is then passed back to the calling activity or component through the onColorPicked.

The activity handles various aspects such as:

  • Displaying the image from which the color needs to be picked.
  • Providing a touch interface to select a pixel.
  • Showing a magnifying glass and a pointer for precise color selection.
  • Handling screen orientation changes and activity lifecycle events gracefully.
  • Dismissing the keyguard if it's locked when the activity starts.
  • Communicating the selected color back via a listener.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Interface definition for a callback to be invoked when a color is picked.

Functions

Link copied to clipboard
Link copied to clipboard
open fun onBackPressed()
Link copied to clipboard
open fun onConfigurationChanged(@NonNull configuration: @NonNull Configuration)
Link copied to clipboard
open fun setOnColorPickListener(@Nullable colorPickListener: @Nullable SeslEyeDropperActivity.ColorPickListener)
Sets the listener for color pick events.