Class

# MobileColorPicker

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Displays the operating system's color picker.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                   | Type                               | Read-Only | Shared |
|----------------------------------------|------------------------------------|-----------|--------|
| `HasAlpha<mobilecolorpicker.hasalpha>` | `Boolean</api/data_types/boolean>` |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                               | Parameters                                                                                                                                                                                                                                                                                                     | Returns                                     | Shared |
|------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|--------|
| `Handle<mobilecolorpicker.handle>` |                                                                                                                                                                                                                                                                                                                | `Ptr</api/data_types/additional_types/ptr>` |        |
| `Show<mobilecolorpicker.show>`     | initialColor As `Color</api/data_types/color>`, prompt As `String</api/data_types/string>` = "", parentScreen As `MobileScreen</api/user_interface/mobile/mobilescreen>` = `Nil</api/language/nil>`, parentControl As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>` = `Nil</api/language/nil>` |                                             |        |

## Events

<div class="rst-class">

table-centered_column_4

</div>

| Name                                             | Parameters                                      | Returns |
|--------------------------------------------------|-------------------------------------------------|---------|
| `Closing<mobilecolorpicker.closing>`             |                                                 |         |
| `ColorSelected<mobilecolorpicker.colorselected>` | selectedColor As `Color</api/data_types/color>` |         |
| `Opening<mobilecolorpicker.opening>`             |                                                 |         |

## Property descriptions

<div id="mobilecolorpicker.hasalpha">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileColorPicker.HasAlpha

**HasAlpha** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the color selected will be returned with an alpha channel.
>
> The default value is `True</api/language/true>`.

## Method descriptions

<div id="mobilecolorpicker.handle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileColorPicker.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

> Returns a `Ptr</api/data_types/additional_types/ptr>` for use with `declares</api/language/declare>`.

<div id="mobilecolorpicker.show">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileColorPicker.Show

**Show**(initialColor As `Color</api/data_types/color>`, prompt As `String</api/data_types/string>` = "", parentScreen As `MobileScreen</api/user_interface/mobile/mobilescreen>` = `Nil</api/language/nil>`, parentControl As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>` = `Nil</api/language/nil>`)

> Displays the system color picker using the color, prompt and location passed. On iPhone, the *parentControl* is discarded because it only can be shown as a modal view.

## Event descriptions

<div id="mobilecolorpicker.closing">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileColorPicker.Closing

**Closing**

> The color picker is closing.

<div id="mobilecolorpicker.colorselected">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileColorPicker.ColorSelected

**ColorSelected**(selectedColor As `Color</api/data_types/color>`)

> The user selected the color passed.

<div id="mobilecolorpicker.opening">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

MobileColorPicker.Opening

**Opening**

> The color picker is opening.

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | All    |

<div class="seealso">

`MobileControl</api/user_interface/mobile/mobilecontrol>` parent class

</div>
