Dialogs
NativePHP for desktop and mobile have reached v1!
On this page
#Native Dialogs
NativePHP allows you to trigger many native dialogs.
Dialogs are created using the Dialog
facade.
Copied!
use Native\Mobile\Facades\Dialog;
#The Share Dialog
You may open the native share dialog by using the Dialog::share()
method.
Copied!
Dialog::share('Title', 'Description', 'URL');
#The Alert Dialog
You may open a native alert dialog by using the Dialog::alert()
method.
Copied!
Dialog::alert('Title', 'Message');
#The Toast Dialog
You may open a native toast dialog by using the Dialog::toast()
method. There is not a toast dialog on iOS,
on iOS we will simply show an Alert Dialog with just an OK
button.
Copied!
Dialog::toast('Message');