# Usage

Once you are done enabling the feature in Essential Kit Settings, you can access the feature classes once you import the required namespace.

```
using VoxelBusters.EssentialKit;
```

### Alert Dialog

A dialog is a small window that prompts the user to make a decision. A dialog does not fill the screen and is normally used for modal events that require users to take an action before they can proceed.

You can have the following for an Alert Dialog

* Title
* Message
* Add buttons

```csharp
AlertDialog dialog = AlertDialog.CreateInstance();
dialog.Title = "Title";
dialog.Message = "Message";
dialog.AddButton("Yes", () => {
    Debug.Log("Yes button clicked");
});
dialog.AddCancelButton("No", () => {
    Debug.Log("Cancel button clicked");
});
dialog.Show(); //Show the dialog
```

### Date Picker

Date picker will be useful for capturing the time as an input from the user. This can be operated in three modes.

* Date : For allowing to pick Date alone (Day, Month, Year)
* Time : For allowing to pick time alone (Hours, Minutes)
* Date and Time : For allowing to pick both date and time

```csharp
DatePicker datePicker = DatePicker.CreateInstance(DatePickerMode.Date);
datePicker.SetOnCloseCallback((result) => {
    Debug.Log("Dismissed the picker with selected date : " + result.SelectedDate);
});
datePicker.Show();
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.essentialkit.voxelbusters.com/v2/native-ui/usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
