Essential Kit Tutorials
DocumentationDownload
Latest(v3)
Latest(v3)
  • Introduction
  • Features Overview
  • Whats new in v3
    • Version 3 vs Version 2
    • Release Notes
    • Upgrade from V2
  • Plugin Overview
    • Settings
    • Folder Structure
    • Installation FAQ
    • Upgrade Guide
  • Features
    • 📒Address Book
      • Setup
      • Usage
      • Testing
      • FAQ
    • App Shortcuts
      • Setup
      • Usage
    • 🆕App Updater
      • Setup
      • Usage
    • 💲Billing Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
        • iOS
        • Android
      • FAQ
    • ☁️Cloud Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🔗Deep Link Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🛠️Utilities (Extras)
      • Usage
    • 💯Game Services
      • Setup
        • iOS
        • Android
      • Usage
      • FAQ
    • 📸Media Services
      • Setup
      • Usage
      • FAQ
    • 📆Native UI
      • Setup
      • Usage
      • FAQ
      • Examples
        • Login Dialog
    • Network Services
      • Setup
      • Usage
      • FAQ
    • ⏰Notification Services
      • Setup
        • iOS
        • Android
      • Usage
      • Examples
        • Nudge to come-back to the game
      • FAQ
    • ⭐Rate My App
      • Setup
      • Usage
      • FAQ
    • 🤝Sharing
      • Setup
      • Usage
        • Message Composer
        • Mail Composer
        • Social Share Composer
        • Share Sheet
      • FAQ
      • Examples
        • Add Attachment Example
    • Task Services
      • Setup
      • Usage
    • 🌏Web View
      • Setup
      • Usage
      • FAQ
      • Examples
        • Loading Pdf File
  • Notes
    • Resolving Android Gradle Build Errors
    • Google Play Services Authentication
    • Target API Level vs Min API Level
    • Handling Refunds for In-App Purchases (Billing Services)
Powered by GitBook
On this page
  • Alert Dialog
  • Date Picker

Was this helpful?

Edit on GitHub
  1. Features
  2. Native UI

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 Text Input Fields (New)

  • Add buttons

AlertDialog dialog = AlertDialog.CreateInstance();
dialog.Title = "Title";
dialog.Message = "Message";
dialog.AddButton("Yes", () => {
    Debug.Log("Yes button clicked");
});
dialog.AddTextInputField();//Can pass options too to configure placeholder text and others.
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

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

PreviousSetupNextFAQ

Last updated 3 months ago

Was this helpful?

📆