#[On] attribute.
Listening to Events
Using Laravel Event Listeners
Using Livewire Components
Event Categories
Alert Events
ButtonPressed
Dispatched when a button in an alert dialog is pressed. Namespace:Native\Mobile\Events\Alert\ButtonPressed
Properties:
index(int) - Button index (0-based)label(string) - Button label textid(string|null) - Alert tracking ID
App Lifecycle Events
UpdateInstalled
Dispatched when an app update is installed. Namespace:Native\Mobile\Events\App\UpdateInstalled
Properties:
version(string) - The new version numbertimestamp(int) - Installation timestamp
Biometric Events
Completed
Dispatched when biometric authentication completes. Namespace:Native\Mobile\Events\Biometric\Completed
Properties:
success(bool) - Whether authentication succeededid(string|null) - Tracking ID
Camera Events
PhotoTaken
Dispatched when a photo is successfully captured. Namespace:Native\Mobile\Events\Camera\PhotoTaken
Properties:
path(string) - File path to the captured photomimeType(string) - MIME type (default: ‘image/jpeg’)id(string|null) - Tracking ID
PhotoCancelled
Dispatched when photo capture is cancelled. Namespace:Native\Mobile\Events\Camera\PhotoCancelled
Properties:
cancelled(bool) - Always trueid(string|null) - Tracking ID
VideoRecorded
Dispatched when a video is successfully recorded. Namespace:Native\Mobile\Events\Camera\VideoRecorded
Properties:
path(string) - File path to the recorded videomimeType(string) - MIME type (default: ‘video/mp4’)id(string|null) - Tracking ID
VideoCancelled
Dispatched when video recording is cancelled. Namespace:Native\Mobile\Events\Camera\VideoCancelled
Properties:
cancelled(bool) - Always trueid(string|null) - Tracking ID
PermissionDenied
Dispatched when camera permission is denied. Namespace:Native\Mobile\Events\Camera\PermissionDenied
Properties:
action(string) - The attempted action: ‘photo’ or ‘video’id(string|null) - Tracking ID
Gallery Events
MediaSelected
Dispatched when media is selected from the device gallery. Namespace:Native\Mobile\Events\Gallery\MediaSelected
Properties:
success(bool) - Whether selection succeededfiles(array) - Array of selected file informationcount(int) - Number of files selectederror(string|null) - Error message if failedcancelled(bool) - Whether user cancelledid(string|null) - Tracking ID
Geolocation Events
LocationReceived
Dispatched when a location is successfully retrieved. Namespace:Native\Mobile\Events\Geolocation\LocationReceived
Properties:
success(bool) - Whether location was retrievedlatitude(float|null) - Latitude coordinatelongitude(float|null) - Longitude coordinateaccuracy(float|null) - Accuracy in meterstimestamp(int|null) - Unix timestampprovider(string|null) - Location provider (‘gps’ or ‘network’)error(string|null) - Error message if failedid(string|null) - Tracking ID
PermissionStatusReceived
Dispatched when permission status check completes. Namespace:Native\Mobile\Events\Geolocation\PermissionStatusReceived
Properties:
location(string) - Overall location permission statuscoarseLocation(string) - Approximate location permissionfineLocation(string) - Precise location permissionid(string|null) - Tracking ID
PermissionRequestResult
Dispatched when permission request completes. Namespace:Native\Mobile\Events\Geolocation\PermissionRequestResult
Properties:
location(string) - Overall location permission statuscoarseLocation(string) - Approximate location permissionfineLocation(string) - Precise location permissionerror(string|null) - Error message if failedid(string|null) - Tracking ID
Microphone Events
MicrophoneRecorded
Dispatched when microphone recording completes. Namespace:Native\Mobile\Events\Microphone\MicrophoneRecorded
Properties:
path(string) - File path to the recorded audiomimeType(string) - MIME type (default: ‘audio/m4a’)id(string|null) - Tracking ID
MicrophoneCancelled
Dispatched when microphone recording is cancelled. Namespace:Native\Mobile\Events\Microphone\MicrophoneCancelled
Properties:
cancelled(bool) - Always trueid(string|null) - Tracking ID
Push Notification Events
TokenGenerated
Dispatched when a push notification token is generated. Namespace:Native\Mobile\Events\PushNotification\TokenGenerated
Properties:
token(string) - The push notification tokenid(string|null) - Tracking ID
Scanner Events
CodeScanned
Dispatched when a QR code or barcode is scanned. Namespace:Native\Mobile\Events\Scanner\CodeScanned
Properties:
data(string) - The scanned code contentformat(string) - The barcode format typeid(string|null) - Tracking ID
ScannerCancelled
Dispatched when the scanner is cancelled. Namespace:Native\Mobile\Events\Scanner\ScannerCancelled
Properties:
cancelled(bool) - Always truereason(string|null) - Cancellation reasonid(string|null) - Tracking ID
Wallet Events
PaymentCompleted
Dispatched when payment is successfully completed. Namespace:Native\Mobile\Events\Wallet\PaymentCompleted
Properties:
paymentIntentId(string) - The payment intent IDamount(int) - Payment amount in smallest currency unitcurrency(string) - Currency codestatus(string) - Payment statusmetadata(array|null) - Payment metadata
PaymentFailed
Dispatched when payment fails. Namespace:Native\Mobile\Events\Wallet\PaymentFailed
Properties:
paymentIntentId(string) - The payment intent IDerrorCode(string) - Error codeerrorMessage(string) - Error messagemetadata(array|null) - Payment metadata
PaymentCancelled
Dispatched when user cancels the payment. Namespace:Native\Mobile\Events\Wallet\PaymentCancelled
Properties:
paymentIntentId(string) - The payment intent IDreason(string|null) - Cancellation reason