MediaStore.ExtraPickImagesAccentColor Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The name of an optional intent-extra used to allow apps to specify the picker accent color.
[Android.Runtime.Register("EXTRA_PICK_IMAGES_ACCENT_COLOR", ApiSince=35)]
public const string ExtraPickImagesAccentColor;
[<Android.Runtime.Register("EXTRA_PICK_IMAGES_ACCENT_COLOR", ApiSince=35)>]
val mutable ExtraPickImagesAccentColor : string
Field Value
- Attributes
Remarks
The name of an optional intent-extra used to allow apps to specify the picker accent color. The extra can only be specified in MediaStore#ACTION_PICK_IMAGES
. The accent color will be used for various primary elements in the PhotoPicker view. All other colors will be set based on android material guidelines.
The value of this intent extra should be a long color value. The alpha component of the given color is not taken into account while setting the accent color. We assume full color opacity. Only colors with luminance(can also be understood as brightness) greater than 0.05 and less than 0.9 are permitted. Luminance of a color is determined using: luminance = Color.luminance(color) where color is the input accent color to be set. Check Color
docs for more details on color luminance and long color values. In case the luminance of the input color is unacceptable, picker colors will be set based on the colors of the device android theme. In case of an invalid input color value i.e. the input color cannot be parsed, IllegalArgumentException
is thrown.
Java documentation for android.provider.MediaStore.EXTRA_PICK_IMAGES_ACCENT_COLOR
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.