Skip to content

SilverdaleGames/NativeMobilePopupUnity

Repository files navigation

Native Mobile Popup Unity

Code Examples

// Dialog Button click event
public void OnDialogInfo()
{
    NativeDialog.OpenDialog("Info popup", "Welcome To Native Popup", "Ok", 
        ()=> {
            DebugLog("OK Button pressed");
        });
}

public void OnDialogConfirm()
{
    NativeDialog.OpenDialog("Confirm popup", "Do you wants about app?", "Yes", "No",
        () => {
            DebugLog("Yes Button pressed");
        },
        () => {
            DebugLog("No Button pressed");
        });
}