mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Resolved Issue #391: Added cancellable Android activityBackPressed event + fixed the names of the other activity events because they were wrong.
This commit is contained in:
@@ -98,6 +98,10 @@ if (platform.device.os === platform.platformNames.android) {
|
||||
application.on(application.androidSaveActivityStateEvent, function (args: application.AndroidActivityBundleEventData) {
|
||||
console.log("Event: " + args.eventName + ", Activity: " + args.activity + ", Bundle: " + args.bundle);
|
||||
});
|
||||
|
||||
application.on(application.androidActivityBackPressedEvent, function (args: application.AndroidActivityBackPressedEventData) {
|
||||
console.log("Event: " + args.eventName + ", Activity: " + args.activity);
|
||||
});
|
||||
}
|
||||
|
||||
application.start();
|
||||
|
||||
Reference in New Issue
Block a user