Skip to content

⚠️ Display simple alert and confirm dialogs on both iOS and Android.

License

Notifications You must be signed in to change notification settings

CandyCoded/AlertConfirmDialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlertConfirmDialog

⚠️ Display simple alert and confirm dialogs on both iOS and Android.

npm

Installation

Unity Package Manager

https://docs.unity3d.com/Packages/[email protected]/manual/index.html

Git

{
  "dependencies": {
    "xyz.candycoded.alertconfirmdialog": "https://github.com/CandyCoded/alertconfirmdialog.git#v1.0.1",
    ...
  }
}

Scoped UPM Registry

{
  "dependencies": {
    "xyz.candycoded.alertconfirmdialog": "1.0.1",
    ...
  },
  "scopedRegistries": [
    {
      "name": "candycoded",
      "url": "https://registry.npmjs.com",
      "scopes": ["xyz.candycoded"]
    }
  ]
}

Usage

First include the package.

using CandyCoded.AlertConfirmDialog;

Alert

AlertConfirmDialog.Alert("Title", "Message");
AlertConfirmDialog.Alert("Title", "Message", () =>
{

    Debug.Log("Ok");

});

Confirm

AlertConfirmDialog.Confirm("Title", "Message");
AlertConfirmDialog.Confirm("Title", "Message", () =>
{

    Debug.Log("Ok");

});
AlertConfirmDialog.Confirm("Title", "Message", () =>
{

    Debug.Log("Ok");

}, () =>
{

    Debug.Log("Cancel");

});

About

⚠️ Display simple alert and confirm dialogs on both iOS and Android.

Resources

License

Stars

Watchers

Forks

Packages

No packages published