Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 3
Registered: ‎01-13-2013
My Device: none
My Carrier: none

Catch back button event

Hello,

I'm starting to develop a new application.

I'm showing a picture from a jpg file.

After I change the screen and go to properties(from the top bar), I return to the photo and it disappear.

How can I see why it happens? I want to see what happens when a window close or after I click on the back button.

 

Thank you

New Contributor
Posts: 8
Registered: ‎07-05-2013
My Device: BB10
My Carrier: Tim

Re: Catch back button event

I have the same problem, how catch back button pressed?

Developer
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Catch back button event

Are you using a NavigationPane ?, If so capture the signal back in your qml and add:

paneProperties: NavigationPaneProperties {
	backButton: ActionItem {
		onTriggered: {
			// .....
			navigationPane.pop();
		}
	}
}

 

Highlighted
Contributor
Posts: 15
Registered: ‎08-09-2013
My Device: Developer
My Carrier: -

Re: Catch back button event

if you using a NavigationPane, you can this do it  by two ways : 

----------------------------------------------------------------------------------------

*-

paneProperties: NavigationPaneProperties {
backButton: ActionItem {
onTriggered: {
// .....
navigationPane.pop();
}
}
}

----------------------------------------------------------------------------------------

or

----------------------------------------------------------------------------------------

*-

NavigationPane {
id: nav

      onPopTransitionEnded: {

               console.log('do something');

       }

 

}

 

----------------------------------------------------------------------------------------